Add trailing slash to path

Otherwise, will ignore files such as lib/plugins-display.php etc
This commit is contained in:
Matt Pass
2014-04-18 12:44:36 +01:00
parent 03655c4c4b
commit 3d89af7e17

View File

@@ -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 {