fumbling in the dark #224

This commit is contained in:
Hannes Mannerheim 2015-07-10 23:27:20 +02:00
parent db42f1186f
commit f099e37d13

View File

@ -130,15 +130,15 @@ class QvitterPlugin extends Plugin {
}
// reroute to qvitter if we're logged out and qvitter is enabled by default
if(self::settings('enabledbydefault') === true && is_null($scoped)) {
if($this->settings('enabledbydefault') === true && is_null($scoped)) {
$this->hijack_ui = true;
}
// if we're logged in and qvitter is enabled by default, reroute if the user has not disabled qvitter
elseif(self::settings('enabledbydefault') === true && $qvitter_disabled_by_user == 0){
elseif($this->settings('enabledbydefault') === true && $qvitter_disabled_by_user == 0){
$this->hijack_ui = true;
}
// if we're logged in, and qvitter is _not_ enabled by default, reroute if the user enabled qvitter
elseif(self::settings('enabledbydefault') === false && $qvitter_enabled_by_user == 1) {
elseif($this->settings('enabledbydefault') === false && $qvitter_enabled_by_user == 1) {
$this->hijack_ui = true;
}