Index: trunk/phase3/includes/User.php |
— | — | @@ -3575,6 +3575,7 @@ |
3576 | 3576 | } |
3577 | 3577 | |
3578 | 3578 | protected function loadOptions() { |
| 3579 | + global $wgCookiePrefix; |
3579 | 3580 | $this->load(); |
3580 | 3581 | if ( $this->mOptionsLoaded || !$this->getId() ) |
3581 | 3582 | return; |
— | — | @@ -3603,6 +3604,11 @@ |
3604 | 3605 | $this->mOptionOverrides[$row->up_property] = $row->up_value; |
3605 | 3606 | $this->mOptions[$row->up_property] = $row->up_value; |
3606 | 3607 | } |
| 3608 | + |
| 3609 | + //null skin if User::mId is loaded out of session data without persistant credentials |
| 3610 | + if ( !isset( $_SESSION['wsToken'] ) && !isset( $_COOKIE["{$wgCookiePrefix}Token"] ) ) |
| 3611 | + $this->mOptions['skin'] = null; |
| 3612 | + |
3607 | 3613 | } |
3608 | 3614 | |
3609 | 3615 | $this->mOptionsLoaded = true; |