Changeset 16548


Ignore:
Timestamp:
Jul 9, 2012, 3:52:29 PM (12 years ago)
Author:
ddtddt
Message:

[extensions] - delete_hit_rate - Compatibility 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/delete_hit_rate/initadmin.php

    r12999 r16548  
    1818//add prefiltre photo
    1919add_event_handler('loc_begin_admin', 'plugdphrPf',60);
     20add_event_handler('loc_begin_admin_page', 'plugdphrPf2',60);
    2021
    2122function plugdphrPf()
     
    2829        {
    2930load_language('plugin.lang', PDHR_PATH);
    30   $search = '#<form id="associations"#';
     31  $search = '#</form>#';
    3132 
    3233  $replacement = '
     
    4243                </form>
    4344        </div>
    44   <form id="associations"';
     45  </form>';
    4546
    4647  return preg_replace($search, $replacement, $content);
    4748        }
    48  
     49               
     50function plugdphrPf2()
     51        {
    4952if (isset($_POST['plugdphphoto']))
    5053 {
     
    7275$result = pwg_query($query);
    7376  }
    74  
     77  }
    7578 
    7679//add prefiltre album
    7780add_event_handler('loc_end_cat_modify', 'plugdphrAf');
     81add_event_handler('loc_end_cat_modify', 'plugdphrAf2');
    7882
    7983function plugdphrAf()
    8084 {
    8185        global $template;
    82         $template->set_prefilter('categories', 'plugdphrAT');
     86        $template->set_prefilter('album_properties', 'plugdphrAT');
    8387 }
    8488
     
    8690 {
    8791load_language('plugin.lang', PDHR_PATH);
    88   $search = '#name="reset">
    89 </p>#';
     92  $search = '#</form>#';
    9093 
    91   $replacement = 'name="reset">
    92 </p>
    93 
     94  $replacement = '
    9495        <div>
    95                 <form method="post" >
     96               
    9697                        <fieldset>
    9798                                <legend>{\'Purge - Plugin Delete Hit/Rate\'|@translate}</legend>
     
    101102                                        </div>
    102103                        </fieldset>
    103                 </form>
     104               
    104105        </div>
     106</form>
    105107  ';
    106108
     
    108110 }
    109111 
    110  
     112 function plugdphrAf2()
     113 {
    111114if (isset($_POST['plugdphA']))
    112115 {
     
    166169        }
    167170 }
    168 
     171}
    169172?>
Note: See TracChangeset for help on using the changeset viewer.