replaced trigger_error calls by Logger methods

This commit is contained in:
Steffen Schröder committed 2014-08-03 13:29:54 +02:00
1 parent 53ccd70b45
commit c246568f95
9 files changed
+33 -30

No files matched your search

@@ -8,6 +8,7 @@ use ManiaControl\Callbacks\TimerListener;
use ManiaControl\Commands\CommandListener;
use ManiaControl\Files\BackupUtil;
use ManiaControl\Files\FileUtil;
use ManiaControl\Logger;
use ManiaControl\ManiaControl;
use ManiaControl\Players\Player;
use ManiaControl\Plugins\InstallMenu;
@@ -268,7 +269,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
if ($player) {
$this->maniaControl->getChat()->sendError($message, $player);
}
trigger_error($message);
Logger::logError($message);
return;
}
@@ -279,7 +280,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
if ($player) {
$this->maniaControl->getChat()->sendError($message, $player);
}
trigger_error($message);
Logger::logError($message);
return;
}