Commit 7b9c18ec authored by Marius Cramer's avatar Marius Cramer
Browse files

Added script to remove all files that are no longer contained in the installation package

- Important for plugin files!
parent b50d36a3
......@@ -179,7 +179,7 @@ function updateDbAndIni() {
}
//* Exec onBeforeSQL function
if(isset($php_patch) && is_object($php_patch)) {
if(isset($php_patch) && is_object($php_patch) && method_exists($php_patch, 'onBeforeSQL')) {
$php_patch->onBeforeSQL();
swriteln($inst->lng('Executing PHP patch file').': '.$php_patch_filename);
}
......@@ -193,7 +193,7 @@ function updateDbAndIni() {
swriteln($inst->lng('Loading SQL patch file').': '.$sql_patch_filename);
//* Exec onAfterSQL function
if(isset($php_patch) && is_object($php_patch)) {
if(isset($php_patch) && is_object($php_patch) && method_exists($php_patch, 'onAfterSQL')) {
$php_patch->onAfterSQL();
}
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment