Ignore:
Timestamp:
Mar 30, 2011, 4:44:24 PM (13 years ago)
Author:
patdenice
Message:

Remove "all photos" language key.
Move prefilter to element_set_global_action.php file.

Location:
extensions/regenerateThumbnails
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/regenerateThumbnails/element_set_global_action.php

    r9931 r9937  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44check_status(ACCESS_ADMINISTRATOR);
     5
     6function regenerate_prefilter($content, $smarty)
     7{
     8  return str_replace('{$thumbnail.TN_SRC}', '{$thumbnail.TN_SRC}?rand='.md5(uniqid(rand(), true)), $content);
     9}
    510
    611global $template, $conf, $page, $pwg_loaded_plugins;
  • extensions/regenerateThumbnails/main.inc.php

    r9934 r9937  
    4646}
    4747
    48 function regenerate_prefilter($content, $smarty)
    49 {
    50   return str_replace('{$thumbnail.TN_SRC}', '{$thumbnail.TN_SRC}?rand='.md5(uniqid(rand(), true)), $content);
    51 }
    52 
    5348?>
  • extensions/regenerateThumbnails/regenerate_thumbnails.tpl

    r9922 r9937  
    314314          <option value="with no tag" {if $filter.prefilter eq 'with no tag'}selected="selected"{/if}>{'with no tag'|@translate}</option>
    315315          <option value="duplicates" {if $filter.prefilter eq 'duplicates'}selected="selected"{/if}>{'duplicates'|@translate}</option>
    316           <option value="all photos" {if $filter.prefilter eq 'all photos'}selected="selected"{/if}>{'all photos'|@translate}</option>
     316          <option value="all photos" {if $filter.prefilter eq 'all photos'}selected="selected"{/if}>{'All'|@translate}</option>
    317317        </select>
    318318      </li>
Note: See TracChangeset for help on using the changeset viewer.