Changeset 549 for trunk

Show
Ignore:
Timestamp:
06/23/08 16:04:33 (5 months ago)
Author:
sidtheduck
Message:

+ Fix for Wordpress integration
+ Fix for large image paths if Plogger embedded and no "Intermediate Pictures"
+ Fix for SQL query if no images are present (failed with updated SQL structure for plogger_init_collections

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/plog-functions.php

    r548 r549  
    506506         
    507507        if (1 == $thumb_config['disabled']) { 
    508                 return $config['baseurl'] . 'images/' . $path; 
     508                return $config['gallery_url'] . 'images/' . $path; 
    509509        } 
    510510         
     
    15991599        // MySQL 4.0 does not support those 
    16001600         
    1601         // -1 is just for the case there are no collections at all 
     1601        // -1 is just for the case there are no pictures withing albums or collections at all 
    16021602        $image_collection_count = array(-1 => -1); 
    1603         $image_album_count = array(); 
     1603        $image_album_count = array(-1 => -1); 
    16041604        $album_count = array(); 
    16051605         
  • trunk/plog-globals.php

    r546 r549  
    4646} 
    4747 
    48 $l10n = new gettext_reader($input); 
     48$plog_l10n = new gettext_reader($input); 
    4949 
    50 // Return a translated string.     
     50// Return a translated string. 
    5151function plog_tr($text) { 
    52   global $l10n; 
    53   return $l10n->translate($text); 
     52  global $plog_l10n; 
     53 
     54        if (isset($plog_l10n)){ 
     55                return $plog_l10n->translate($text); 
     56        } else { 
     57                return $text; 
     58        } 
    5459} 
    5560