changed dedimania plugin classname

This commit is contained in:
Steffen Schröder 2014-05-03 23:56:57 +02:00
parent 9aea33951a
commit 0c819ce658

View File

@ -28,7 +28,7 @@ use ManiaControl\Plugins\Plugin;
* @copyright 2014 ManiaControl Team * @copyright 2014 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/ */
class Dedimania implements CallbackListener, CommandListener, TimerListener, Plugin { class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListener, Plugin {
/* /*
* Constants * Constants
*/ */
@ -74,6 +74,8 @@ class Dedimania implements CallbackListener, CommandListener, TimerListener, Plu
* @see \ManiaControl\Plugins\Plugin::prepare() * @see \ManiaControl\Plugins\Plugin::prepare()
*/ */
public static function prepare(ManiaControl $maniaControl) { public static function prepare(ManiaControl $maniaControl) {
$maniaControl->database->migrationHelper->transferSettings('Dedimania\Dedimania', get_class());
$servers = $maniaControl->server->getAllServers(); $servers = $maniaControl->server->getAllServers();
foreach ($servers as $server) { foreach ($servers as $server) {
$maniaControl->settingManager->initSetting(get_class(), self::SETTING_DEDIMANIA_CODE . $server->login . '$l', ''); $maniaControl->settingManager->initSetting(get_class(), self::SETTING_DEDIMANIA_CODE . $server->login . '$l', '');