From: Alexandre Emsenhuber Date: Thu, 5 Jun 2008 20:06:12 +0000 (+0000) Subject: use table prefix X-Git-Tag: 1.31.0-rc.0~47140 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=9bca180b12dc444e0d8d6a7088f19c26f0349494;p=lhc%2Fweb%2Fwiklou.git use table prefix --- diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index 7ffbe03ebc..c83893b2dc 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -1205,11 +1205,12 @@ function update_password_format() { echo "Updating password hash format..."; global $wgDatabase, $wgPasswordSalt; + $user = $wgDatabase->tableName( 'user' ); if ( $wgPasswordSalt ) { - $sql = "UPDATE user SET user_password=CONCAT(':B:', user_id, ':', user_password) " . + $sql = "UPDATE $user SET user_password=CONCAT(':B:', user_id, ':', user_password) " . "WHERE user_password NOT LIKE ':%'"; } else { - $sql = "UPDATE user SET user_password=CONCAT(':A:', user_password) " . + $sql = "UPDATE $user SET user_password=CONCAT(':A:', user_password) " . "WHERE user_password NOT LIKE ':%'"; } $wgDatabase->query( $sql, __METHOD__ );