Update init.php

cleaning the header and footer after removing the plugin
This commit is contained in:
Mitan Omar
2019-01-08 06:42:10 +01:00
committed by GitHub
parent e1da9c5f65
commit d4caaf35ee

View File

@@ -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');
}
};