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;
}

View File

@ -214,7 +214,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
return;
}
$message = "Starting Plugins Updating... You'll need to restart ManiaControl when it's finished!";
$message = "Starting Plugins Updating...";
if ($player) {
$this->maniaControl->chat->sendInformation($message, $player);
}
@ -230,7 +230,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
}
foreach ($pluginsUpdates as $pluginUpdateData) {
$self->installPlugin($pluginUpdateData, $player, true);
$this->installPlugin($pluginUpdateData, $player, true);
}
}