From e202ce9f86150462b498f7a03f7d81d69c53271c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Thu, 12 Jun 2014 15:46:24 +0200 Subject: [PATCH] minor adjustments --- application/core/ErrorHandler.php | 1 + application/core/ManiaControl.php | 2 +- application/plugins/MCTeam/KarmaPlugin.php | 2 +- application/plugins/MCTeam/WidgetPlugin.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/application/core/ErrorHandler.php b/application/core/ErrorHandler.php index e16960a4..97d1751e 100644 --- a/application/core/ErrorHandler.php +++ b/application/core/ErrorHandler.php @@ -6,6 +6,7 @@ use ManiaControl\Callbacks\Callbacks; use ManiaControl\Files\FileUtil; use ManiaControl\Plugins\PluginManager; use ManiaControl\Update\UpdateManager; +use Maniaplanet\DedicatedServer\Xmlrpc\TransportException; /** * Error and Exception Manager Class diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index e0323f21..27e22699 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -250,7 +250,7 @@ class ManiaControl implements CommandListener, TimerListener { exec($command); } else { $command = escapeshellarg(ManiaControlDir . "ManiaControl.bat"); - system($command); // TODO, windows stucks here as long controller is running + system($command); // TODO: windows gets stuck here as long controller is running } // Quit the old instance diff --git a/application/plugins/MCTeam/KarmaPlugin.php b/application/plugins/MCTeam/KarmaPlugin.php index acd611f1..4cee59cf 100644 --- a/application/plugins/MCTeam/KarmaPlugin.php +++ b/application/plugins/MCTeam/KarmaPlugin.php @@ -173,7 +173,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { $this->mxKarmaOpenSession(); $this->mxKarma['startTime'] = time(); - //Check if Karma Code got specified, and inform admin that it would be good to specifiy one + //Check if Karma Code got specified, and inform admin that it would be good to specify one $serverLogin = $this->maniaControl->server->login; $karmaSettingName = self::buildKarmaSettingName($serverLogin); $mxKarmaCode = $this->maniaControl->settingManager->getSettingValue($this, $karmaSettingName); diff --git a/application/plugins/MCTeam/WidgetPlugin.php b/application/plugins/MCTeam/WidgetPlugin.php index 6d21dee8..9d6f7dfd 100644 --- a/application/plugins/MCTeam/WidgetPlugin.php +++ b/application/plugins/MCTeam/WidgetPlugin.php @@ -360,7 +360,7 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin { $quad->setSubStyle($quad::SUBSTYLE_StateFavourite); $quad->setPosition($width / 2 - 4, -1.5, -0.5); $quad->setSize(3, 3); - $quad->setManialink('mcontrol?favorite=' . urlencode($this->maniaControl->server->login)); + $quad->setManialink('maniacontrol?favorite=' . urlencode($this->maniaControl->server->login)); // Send manialink $this->maniaControl->manialinkManager->sendManialink($maniaLink, $login);