mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-14 20:19:43 +01:00
Update init.php
cleaning the header and footer after removing the plugin
This commit is contained in:
@@ -97,6 +97,20 @@ $kleeja_plugin['advanced_extras']['uninstall'] = function ($plg_id) {
|
||||
foreach (array('ar', 'en') as $language) {
|
||||
delete_olang(null, $language, $plg_id);
|
||||
}
|
||||
|
||||
global $SQL , $dbprefix;
|
||||
$update_query = array(
|
||||
'UPDATE' => "{$dbprefix}stats",
|
||||
'SET' => "ex_footer = '' , ex_header = '' "
|
||||
);
|
||||
|
||||
$SQL->build($update_query);
|
||||
|
||||
if($SQL->affected())
|
||||
{
|
||||
//delete cache ..
|
||||
delete_cache('data_extra');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user