Merge pull request #46 from MitanOmar/patch-1

Update init.php
This commit is contained in:
Abdulrahman ☕️
2019-01-08 11:08:58 +03:00
committed by GitHub

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