Changeset 549
- Timestamp:
- 06/23/08 16:04:33 (5 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
plog-functions.php (modified) (2 diffs)
-
plog-globals.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-functions.php
r548 r549 506 506 507 507 if (1 == $thumb_config['disabled']) { 508 return $config[' baseurl'] . 'images/' . $path;508 return $config['gallery_url'] . 'images/' . $path; 509 509 } 510 510 … … 1599 1599 // MySQL 4.0 does not support those 1600 1600 1601 // -1 is just for the case there are no collections at all1601 // -1 is just for the case there are no pictures withing albums or collections at all 1602 1602 $image_collection_count = array(-1 => -1); 1603 $image_album_count = array( );1603 $image_album_count = array(-1 => -1); 1604 1604 $album_count = array(); 1605 1605 -
trunk/plog-globals.php
r546 r549 46 46 } 47 47 48 $ l10n = new gettext_reader($input);48 $plog_l10n = new gettext_reader($input); 49 49 50 // Return a translated string. 50 // Return a translated string. 51 51 function 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 } 54 59 } 55 60
