r5256 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5255‎ | r5256 | r5257 >
Date:06:38, 17 September 2004
Author:vibber
Status:old
Tags:
Comment:
Fix double-escaping of messages added to the database at install time.
This removes the endless slashes of doom introduced in rev 1.27
Modified paths:
  • /trunk/phase3/maintenance/InitialiseMessages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/InitialiseMessages.inc
@@ -109,7 +109,6 @@
110110 }
111111 $titleObj = Title::newFromText( $key );
112112 $title = $titleObj->getDBkey();
113 - $dbencMsg = $dbw->strencode( $message );
114113
115114 # Update messages which already exist
116115 if ( array_key_exists( $title, $existingTitles ) ) {
@@ -124,7 +123,7 @@
125124 array_push( $arr, array(
126125 'cur_namespace' => $ns,
127126 'cur_title' => $title,
128 - 'cur_text' => $dbencMsg,
 127+ 'cur_text' => $message,
129128 'cur_user' => 0,
130129 'cur_user_text' => $username,
131130 'cur_timestamp' => $dbw->timestamp( $timestamp ),

Status & tagging log