$logged_in_user was changed to $scoped before

This commit is contained in:
Mikael Nordfeldth 2015-06-07 12:02:30 +02:00
parent b292a273d8
commit 5c0733eba1

View File

@ -127,7 +127,7 @@ class QvitterPlugin extends Plugin {
$qvitter_disabled_by_user = $scoped->getPref('qvitter', 'disable_qvitter', false);
}
$this->hijack_ui = (self::settings('enabledbydefault') && !$logged_in_user)
$this->hijack_ui = (self::settings('enabledbydefault') && !$scoped)
|| (self::settings('enabledbydefault') && !$qvitter_disabled_by_user)
|| (!self::settings('enabledbydefault') && $qvitter_enabled_by_user);