Changeset 3950


Ignore:
Timestamp:
10/01/09 12:43:26 (10 years ago)
Author:
patdenice
Message:

merge r3949 from branch 2.0 to trunk
Purge compiled templates when activate or deactivate a plugin.
Cf topic:16250 on french forum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugins_list.php

    r3282 r3950  
    3939if (isset($_GET['action']) and isset($_GET['plugin']) and !is_adviser()) 
    4040{ 
    41   $page['errors'] = 
    42     $plugins->perform_action($_GET['action'], $_GET['plugin']); 
     41  $page['errors'] = $plugins->perform_action($_GET['action'], $_GET['plugin']); 
    4342 
    44   if (empty($page['errors'])) redirect($base_url); 
     43  if (empty($page['errors'])) 
     44  { 
     45    if ($_GET['action'] == 'activate' or $_GET['action'] == 'deactivate') 
     46    { 
     47      $template->delete_compiled_templates(); 
     48    } 
     49    redirect($base_url); 
     50  } 
    4551} 
    4652 
Note: See TracChangeset for help on using the changeset viewer.