Changeset 16104 for extensions/SmartAlbums/include/count_images.php
- Timestamp:
- Jun 27, 2012, 9:19:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmartAlbums/include/count_images.php
r11334 r16104 6 6 define('PHPWG_ROOT_PATH','./../../../'); 7 7 define('IN_ADMIN', true); 8 8 9 include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); 10 11 if (!is_admin()) die('Hacking attempt!'); 12 9 13 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 10 14 include_once(SMART_PATH.'include/functions.inc.php'); 15 16 load_language('plugin.lang', SMART_PATH); 17 $conf['SmartAlbums'] = unserialize($conf['SmartAlbums']); 11 18 12 19 if (isset($_POST['filters'])) … … 22 29 array_push($filters, $filter); 23 30 } 31 else 32 { 33 echo '<span class="filter_error">'.$page['errors'][ count($page['errors'])-1 ].'</span>'; 34 exit; 35 } 24 36 } 25 37 … … 31 43 } 32 44 33 echo l10n_dec('%d photo', '%d photos', count($associated_images));45 echo '<span class="count_image">'.l10n_dec('%d photo', '%d photos', count($associated_images)).'</span>'; 34 46 35 47 ?>
Note: See TracChangeset
for help on using the changeset viewer.