Ignore:
Timestamp:
Feb 9, 2012, 10:11:34 PM (12 years ago)
Author:
rvelices
Message:
  • remove square/thumb from choices on picture
  • fix content margin on password register
  • purge derivative cache by type of derivative
  • session saved infos/messages are not given to the page on html redirections
  • shorter/faster code in functions_xxx
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/maintenance.php

    r13001 r13074  
    143143  case 'derivatives':
    144144  {
    145     clear_derivative_cache();
     145    clear_derivative_cache($_GET['type']);
    146146    break;
    147147  }
     
    159159
    160160$url_format = get_root_url().'admin.php?page=maintenance&action=%s&pwg_token='.get_pwg_token();
     161
     162$purge_urls[l10n('all')] = sprintf($url_format, 'derivatives').'&type=all';
     163foreach(ImageStdParams::get_defined_type_map() as $params)
     164{
     165  $purge_urls[ l10n($params->type) ] = sprintf($url_format, 'derivatives').'&type='.$params->type;
     166}
    161167
    162168$template->assign(
     
    174180    'U_MAINT_COMPILED_TEMPLATES' => sprintf($url_format, 'compiled-templates'),
    175181    'U_MAINT_DERIVATIVES' => sprintf($url_format, 'derivatives'),
     182    'purge_derivatives' => $purge_urls,
    176183    'U_HELP' => get_root_url().'admin/popuphelp.php?page=maintenance',
    177184    )
    178185  );
     186
    179187
    180188if ($conf['gallery_locked'])
Note: See TracChangeset for help on using the changeset viewer.