mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 06:24:22 +00:00
refactor: use isRegistered instead of isLoggedIn
isLoggedIn is depreciated in 1.36
This commit is contained in:
parent
88aed73f5c
commit
41a0793ae1
|
@ -49,7 +49,7 @@ final class PageTools extends Partial {
|
|||
|
||||
// Login-based condition, return true if condition is met
|
||||
if ( $condition === 'login' ) {
|
||||
$condition = $this->skin->getUser()->isLoggedIn();
|
||||
$condition = $this->skin->getUser()->isRegistered();
|
||||
}
|
||||
|
||||
// Permission-based condition, return true if condition is met
|
||||
|
|
Loading…
Reference in a new issue