From 3d89af7e174febb7d7d7ceb21cc753c0c5963036 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 18 Apr 2014 12:44:36 +0100 Subject: [PATCH] Add trailing slash to path Otherwise, will ignore files such as lib/plugins-display.php etc --- lib/updater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/updater.php b/lib/updater.php index 28f7365..7830e2b 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -36,7 +36,7 @@ function copyOldVersion() { // Don't move plugins away $testPath = $source.DIRECTORY_SEPARATOR.$iterator->getSubPathName(); $testPath = str_replace("\\","/",$testPath); - if (strpos($testPath,"/plugins")==false) { + if (strpos($testPath,"/plugins/")==false) { if ($item->isDir()) { mkdir($dest.DIRECTORY_SEPARATOR.$iterator->getSubPathName(), 0705); } else {