Index: trunk/phase3/includes/User.php |
— | — | @@ -282,7 +282,11 @@ |
283 | 283 | |
284 | 284 | function addSalt( $p ) |
285 | 285 | { |
286 | | - return md5( "{$this->mId}-{$p}" ); |
| 286 | + global $wgPasswordSalt; |
| 287 | + if($wgPasswordSalt) |
| 288 | + return md5( "{$this->mId}-{$p}" ); |
| 289 | + else |
| 290 | + return $p; |
287 | 291 | } |
288 | 292 | |
289 | 293 | function encryptPassword( $p ) |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -121,6 +121,8 @@ |
122 | 122 | # Requires zlib support enabled in PHP. |
123 | 123 | $wgUseGzip = false; |
124 | 124 | |
| 125 | +$wgPasswordSalt = true; # For compatibility with old installations set to false |
| 126 | + |
125 | 127 | # Which namespaces should support subpages? |
126 | 128 | # See Language.php for a list of namespaces. |
127 | 129 | # |