suppress warnings
This commit is contained in:
parent
b25171657c
commit
2a6ef42017
@ -404,7 +404,7 @@ class MapManager implements CallbackListener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!file_put_contents($fullMapFileName, $file)) {
|
if (!@file_put_contents($fullMapFileName, $file)) {
|
||||||
// Save error
|
// Save error
|
||||||
$this->maniaControl->getChat()->sendError('Saving map failed!', $login);
|
$this->maniaControl->getChat()->sendError('Saving map failed!', $login);
|
||||||
return;
|
return;
|
||||||
|
@ -265,7 +265,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
|
|||||||
$tempDir = FileUtil::getTempFolder();
|
$tempDir = FileUtil::getTempFolder();
|
||||||
$updateFileName = $tempDir . $pluginUpdateData->zipfile;
|
$updateFileName = $tempDir . $pluginUpdateData->zipfile;
|
||||||
|
|
||||||
$bytes = file_put_contents($updateFileName, $updateFileContent);
|
$bytes = @file_put_contents($updateFileName, $updateFileContent);
|
||||||
if (!$bytes || $bytes <= 0) {
|
if (!$bytes || $bytes <= 0) {
|
||||||
$message = "Plugin {$actionNoun} failed: Couldn't save {$actionNoun} Zip!";
|
$message = "Plugin {$actionNoun} failed: Couldn't save {$actionNoun} Zip!";
|
||||||
if ($player) {
|
if ($player) {
|
||||||
@ -288,7 +288,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
|
|||||||
|
|
||||||
$zip->extractTo(MANIACONTROL_PATH . 'plugins' . DIRECTORY_SEPARATOR);
|
$zip->extractTo(MANIACONTROL_PATH . 'plugins' . DIRECTORY_SEPARATOR);
|
||||||
$zip->close();
|
$zip->close();
|
||||||
unlink($updateFileName);
|
@unlink($updateFileName);
|
||||||
FileUtil::deleteTempFolder();
|
FileUtil::deleteTempFolder();
|
||||||
|
|
||||||
$messageExtra = '';
|
$messageExtra = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user