diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-09-02 15:19:34 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-09-02 15:19:34 +0200 |
commit | 9498a3d2852ace0f4ee23598f542dbce3fd2ec28 (patch) | |
tree | 5aeced25a9fc09f93682788259f5c7d6d248634d /includes/User.php | |
parent | 588cc40aeec0165400421ef9612e81b6d2c7b936 (diff) |
Update to MediaWiki 1.19.2
Diffstat (limited to 'includes/User.php')
-rw-r--r-- | includes/User.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/User.php b/includes/User.php index cfba748f..1529da1e 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2812,11 +2812,16 @@ class User { * @todo Only rarely do all these fields need to be set! */ public function saveSettings() { + global $wgAuth; + $this->load(); if ( wfReadOnly() ) { return; } if ( 0 == $this->mId ) { return; } $this->mTouched = self::newTouchedTimestamp(); + if ( !$wgAuth->allowSetLocalPassword() ) { + $this->mPassword = ''; + } $dbw = wfGetDB( DB_MASTER ); $dbw->update( 'user', |