Commit 3c2deba6f5fffc851d9a195b3edebf46b2e49513
1 parent
196c157f
Merged in from DEV trunk...
KTS-3596 "Remove old search plugins when upgrading from 3.4.6 to 3.5.3" Fixed. Corrected rmdir() non-recursive issue. Committed by: Kevin Fourie Reviewed by: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@9123 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
3 deletions
lib/upgrades/UpgradeFunctions.inc.php
| ... | ... | @@ -1319,9 +1319,9 @@ class UpgradeFunctions { |
| 1319 | 1319 | |
| 1320 | 1320 | // Files MUST be removed before folders and folders MUST be empty |
| 1321 | 1321 | $oldPath1 = KT_DIR . "/templates/ktstandard/searchdashlet/"; |
| 1322 | - $this->rm_recursive($oldPath1); | |
| 1322 | + UpgradeFunctions::rm_recursive($oldPath1); | |
| 1323 | 1323 | $oldPath2 = KT_DIR . "/plugins/generalmetadata/"; |
| 1324 | - $this->rm_recursive($oldPath2); | |
| 1324 | + UpgradeFunctions::rm_recursive($oldPath2); | |
| 1325 | 1325 | |
| 1326 | 1326 | // FIXME: We should check that they all worked |
| 1327 | 1327 | return true; |
| ... | ... | @@ -1339,7 +1339,7 @@ class UpgradeFunctions { |
| 1339 | 1339 | { |
| 1340 | 1340 | continue; |
| 1341 | 1341 | } |
| 1342 | - if (!rm_recursive($filepath.'/'.$sf)) | |
| 1342 | + if (!UpgradeFunctions::rm_recursive($filepath.'/'.$sf)) | |
| 1343 | 1343 | { |
| 1344 | 1344 | //throw new Exception( $filepath.'/'.$sf.' could not be deleted.'); |
| 1345 | 1345 | return false; | ... | ... |