mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
merge r3949 from branch 2.0 to trunk
Purge compiled templates when activate or deactivate a plugin. Cf topic:16250 on french forum. git-svn-id: http://piwigo.org/svn/trunk@3950 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -38,10 +38,16 @@ $plugins = new plugins();
|
||||
//--------------------------------------------------perform requested actions
|
||||
if (isset($_GET['action']) and isset($_GET['plugin']) and !is_adviser())
|
||||
{
|
||||
$page['errors'] =
|
||||
$plugins->perform_action($_GET['action'], $_GET['plugin']);
|
||||
$page['errors'] = $plugins->perform_action($_GET['action'], $_GET['plugin']);
|
||||
|
||||
if (empty($page['errors'])) redirect($base_url);
|
||||
if (empty($page['errors']))
|
||||
{
|
||||
if ($_GET['action'] == 'activate' or $_GET['action'] == 'deactivate')
|
||||
{
|
||||
$template->delete_compiled_templates();
|
||||
}
|
||||
redirect($base_url);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------Tabsheet
|
||||
|
||||
Reference in New Issue
Block a user