Changeset 9918


Ignore:
Timestamp:
Mar 29, 2011, 5:48:32 PM (9 years ago)
Author:
patdenice
Message:

Clean code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/regenerateThumbnails/main.inc.php

    r9917 r9918  
    1111
    1212add_event_handler('loc_begin_element_set_global', 'rg_element_set_global_add_action');
    13 add_event_handler('element_set_global_action', 'rg_element_set_global_perform_action');
    1413add_event_handler('ws_add_methods', 'add_regenerate_thumbnails_method');
    1514
     
    2726    $template->delete_compiled_templates();
    2827    array_push($page['infos'], sprintf(l10n('%s thumbnails have been regenerated'), $_GET['regeneratedThumbnail']));
    29     unset($_SESSION['regenerateThumbnail']);
    3028  }
    3129
     
    5755
    5856  $template->set_prefilter('batch_manager_global', 'regenerate_prefilter');
    59 }
    60 
    61 function rg_element_set_global_perform_action($action)
    62 {
    63   global $page;
    64 
    65   if ($action == 'my_action')
    66   {
    67     array_push($page['infos'], 'yo');
    68   }
    6957}
    7058
Note: See TracChangeset for help on using the changeset viewer.