From dcf150567cdf498853aacae15412cbcf8609eac0 Mon Sep 17 00:00:00 2001 From: kremsy Date: Tue, 29 Apr 2014 20:54:50 +0200 Subject: [PATCH] added fixme --- application/core/Admin/AdminLists.php | 1 + application/core/Admin/AuthenticationManager.php | 1 + 2 files changed, 2 insertions(+) diff --git a/application/core/Admin/AdminLists.php b/application/core/Admin/AdminLists.php index bf83d7ae..9dae7cf2 100644 --- a/application/core/Admin/AdminLists.php +++ b/application/core/Admin/AdminLists.php @@ -157,6 +157,7 @@ class AdminLists implements ManialinkPageAnswerListener, CallbackListener { $rightLabel->setX($x + 13.9); $rightLabel->setTextSize(0.8); $rightLabel->setZ(10); + //FIXME, getAuthLevelAbbrev fails $rightLabel->setText($this->maniaControl->authenticationManager->getAuthLevelAbbreviation($admin)); $description = $this->maniaControl->authenticationManager->getAuthLevelName($admin) . " " . $admin->nickname; $rightLabel->addTooltipLabelFeature($descriptionLabel, $description); diff --git a/application/core/Admin/AuthenticationManager.php b/application/core/Admin/AuthenticationManager.php index 255b490c..f9f3dfdc 100644 --- a/application/core/Admin/AuthenticationManager.php +++ b/application/core/Admin/AuthenticationManager.php @@ -234,6 +234,7 @@ class AuthenticationManager implements CallbackListener { * @return string */ public static function getAuthLevelName($authLevelInt) { + //FIXME somehow it fails here (look also AdminList.php) if ($authLevelInt instanceof Player) { $authLevelInt = $authLevelInt->authLevel; } else {