Ignore:
Timestamp:
Jun 27, 2012, 9:19:07 PM (12 years ago)
Author:
mistic100
Message:

updated for Piwigo 2.4
new filters : name, author, level, hits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/SmartAlbums/include/count_images.php

    r11334 r16104  
    66define('PHPWG_ROOT_PATH','./../../../');
    77define('IN_ADMIN', true);
     8
    89include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
     10
     11if (!is_admin()) die('Hacking attempt!');
     12
    913include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    1014include_once(SMART_PATH.'include/functions.inc.php');
     15
     16load_language('plugin.lang', SMART_PATH);
     17$conf['SmartAlbums'] = unserialize($conf['SmartAlbums']);
    1118
    1219if (isset($_POST['filters']))
     
    2229      array_push($filters, $filter);
    2330    }
     31    else
     32    {
     33      echo '<span class="filter_error">'.$page['errors'][ count($page['errors'])-1 ].'</span>';
     34      exit;
     35    }
    2436  }
    2537
     
    3143}
    3244
    33 echo l10n_dec('%d photo', '%d photos', count($associated_images));
     45echo '<span class="count_image">'.l10n_dec('%d photo', '%d photos', count($associated_images)).'</span>';
    3446
    3547?>
Note: See TracChangeset for help on using the changeset viewer.