mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* update templates cache when installing/uninstalling plugin
This commit is contained in:
parent
6c3439acf9
commit
27fb0ffb06
@ -60,6 +60,9 @@ if(isset($_REQUEST['uninstall'])){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($success) {
|
if($success) {
|
||||||
|
if($cache->enabled()) {
|
||||||
|
$cache->delete('templates');
|
||||||
|
}
|
||||||
success('Successfully uninstalled plugin ' . $uninstall);
|
success('Successfully uninstalled plugin ' . $uninstall);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -185,6 +188,10 @@ else if(isset($_FILES["plugin"]["name"]))
|
|||||||
warning('Unknown event type: ' . $info['type']);
|
warning('Unknown event type: ' . $info['type']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($cache->enabled()) {
|
||||||
|
$cache->delete('templates');
|
||||||
|
}
|
||||||
success('<strong>' . $plugin['name'] . '</strong> plugin has been successfully installed.');
|
success('<strong>' . $plugin['name'] . '</strong> plugin has been successfully installed.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user