From 7690f76aca9d3d073831f2b89cf98acb6883de5d Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 25 May 2014 10:10:01 +0200 Subject: [PATCH] back button maniacontrol settings, authentication manager permission level set --- application/core/Admin/AuthenticationManager.php | 2 +- application/core/Configurators/ManiaControlSettings.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/core/Admin/AuthenticationManager.php b/application/core/Admin/AuthenticationManager.php index 85386926..1f6cbd14 100644 --- a/application/core/Admin/AuthenticationManager.php +++ b/application/core/Admin/AuthenticationManager.php @@ -335,7 +335,7 @@ class AuthenticationManager implements CallbackListener { * @param $authLevelNeeded * @return array */ - public function getPermissionLevelNameArray($authLevelNeeded) { + private function getPermissionLevelNameArray($authLevelNeeded) { switch ($authLevelNeeded) { case self::AUTH_LEVEL_MODERATOR: return array(self::AUTH_NAME_MODERATOR, self::AUTH_NAME_ADMIN, self::AUTH_NAME_SUPERADMIN, self::AUTH_NAME_MASTERADMIN); diff --git a/application/core/Configurators/ManiaControlSettings.php b/application/core/Configurators/ManiaControlSettings.php index 48bc0222..029699af 100644 --- a/application/core/Configurators/ManiaControlSettings.php +++ b/application/core/Configurators/ManiaControlSettings.php @@ -117,7 +117,8 @@ class ManiaControlSettings implements ConfiguratorMenu, CallbackListener { $backLabel = new Label_Button(); $frame->add($backLabel); - $backLabel->setPosition($width * -0.49, $height * -0.44); + $backLabel->setStyle($backLabel::STYLE_CardMain_Quit); + $backLabel->setPosition(-$width / 2 + 7, -$height / 2 + 7); $backLabel->setHAlign($backLabel::LEFT); $backLabel->setTextSize(2); $backLabel->setText('Back');