fixed plugin updating
This commit is contained in:
parent
47c7a69e5d
commit
fb079f6f2e
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user