Changeset 4458

Show
Ignore:
Timestamp:
10/23/06 20:44:47 (2 years ago)
Author:
bergie
Message:

Support converted 2.4 photos

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/net.nemein.wiki/config/manifest.inc

    r4447 r4458  
    11'name' => 'net.nemein.wiki', 
    22'purecode' => false, 
    3 'version' => '2.1.1', 
     3'version' => '2.2.0', 
    44'state'   => 'stable', 
    55'privileges' =>  Array(), 
  • trunk/src/net.nemein.wiki/static/wiki.css

    r4447 r4458  
    88{ 
    99    border-bottom: dashed 1px #c0c0c0; 
     10} 
     11div.net_nemein_wiki_wikipage a.edit img 
     12{ 
     13    border: none; 
    1014} 
    1115 
  • trunk/src/net.nemein.wiki/wikipage.php

    r4447 r4458  
    350350            if (!$photo) 
    351351            { 
    352                 return "<span class=\"missing_photo\" title=\"{$parts[1]}\">{$fulltext}</span>{$after}"; 
     352                // Fallback for the conversion script 
     353                // FIXME: Remove this when the conversion script is able to fix the link tags 
     354                $qb = org_routamc_photostream_photo_dba::new_query_builder(); 
     355                $qb->add_constraint('parameter.domain', '=', 'org.routamc.photostream'); 
     356                $qb->add_constraint('parameter.name', '=', 'net.siriux.photos:guid'); 
     357                $qb->add_constraint('parameter.value', '=', $parts[1]); 
     358                $photos = $qb->execute(); 
     359                if (count($photos) == 0) 
     360                {                 
     361                    return "<span class=\"missing_photo\" title=\"{$parts[1]}\">{$fulltext}</span>{$after}"; 
     362                } 
     363                else 
     364                { 
     365                    $photo = $photos[0]; 
     366                } 
    353367            } 
    354368