fixed plugin updating

This commit is contained in:
Steffen Schröder
2014-05-02 05:04:55 +02:00
parent 47c7a69e5d
commit fb079f6f2e
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ abstract class BackupUtil {
$parentPath = $pathInfo['dirname'] . '/';
$dirName = $pathInfo['basename'];
$backupZip->addEmptyDir($dirName);
$this->zipDirectory($backupZip, ManiaControlDir, strlen($parentPath), $excludes);
self::zipDirectory($backupZip, ManiaControlDir, strlen($parentPath), $excludes);
$backupZip->close();
return true;
}
@ -56,7 +56,7 @@ abstract class BackupUtil {
$parentPath = $pathInfo['dirname'] . '/';
$dirName = $pathInfo['basename'];
$backupZip->addEmptyDir($dirName);
$this->zipDirectory($backupZip, ManiaControlDir . '/plugins', strlen($parentPath), $excludes);
self::zipDirectory($backupZip, ManiaControlDir . '/plugins', strlen($parentPath), $excludes);
$backupZip->close();
return true;
}