diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php index 260667507..36fe8549d 100644 --- a/includes/skins/SkinMinerva.php +++ b/includes/skins/SkinMinerva.php @@ -252,7 +252,7 @@ class SkinMinerva extends SkinTemplate { $className .= ' page-Main_Page '; } - if ( $this->isAuthenticatedUser() ) { + if ( $this->getUser()->isLoggedIn() ) { $className .= ' is-authenticated'; } // The new treatment should only apply to the main namespace @@ -265,15 +265,6 @@ class SkinMinerva extends SkinTemplate { return $className; } - /** - * Check whether the current user is authenticated or not. - * @todo This helper function is only truly needed whilst SkinMobileApp does not support login - * @return bool - */ - protected function isAuthenticatedUser() { - return $this->getUser()->isLoggedIn(); - } - /** * Whether the output page contains category links and the category feature is enabled. * @return bool @@ -960,7 +951,7 @@ class SkinMinerva extends SkinTemplate { $styles[] = 'skins.minerva.userpage.styles'; $styles[] = 'skins.minerva.userpage.icons'; } - if ( $this->isAuthenticatedUser() ) { + if ( $this->getUser()->isLoggedIn() ) { $styles[] = 'skins.minerva.loggedin.styles'; $styles[] = 'skins.minerva.icons.loggedin'; }