Skip to content

Commit 7b9c18e

Browse files
author
Marius Cramer
committed
Added script to remove all files that are no longer contained in the installation package
- Important for plugin files!
1 parent b50d36a commit 7b9c18e

File tree

2 files changed

+1432
-2
lines changed

2 files changed

+1432
-2
lines changed

install/lib/update.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function updateDbAndIni() {
179179
}
180180

181181
//* Exec onBeforeSQL function
182-
if(isset($php_patch) && is_object($php_patch)) {
182+
if(isset($php_patch) && is_object($php_patch) && method_exists($php_patch, 'onBeforeSQL')) {
183183
$php_patch->onBeforeSQL();
184184
swriteln($inst->lng('Executing PHP patch file').': '.$php_patch_filename);
185185
}
@@ -193,7 +193,7 @@ function updateDbAndIni() {
193193
swriteln($inst->lng('Loading SQL patch file').': '.$sql_patch_filename);
194194

195195
//* Exec onAfterSQL function
196-
if(isset($php_patch) && is_object($php_patch)) {
196+
if(isset($php_patch) && is_object($php_patch) && method_exists($php_patch, 'onAfterSQL')) {
197197
$php_patch->onAfterSQL();
198198
}
199199

0 commit comments

Comments
 (0)