r1340 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r1339‎ | r1340 | r1341 >
Date:01:13, 20 May 2003
Author:eloquence
Status:old
Tags:
Comment:
replaced WIKI-ISBN with MAGICNUMBER as replacement variable for ISBN page
to avoid triggering the "ISBN*" regex parser.
Modified paths:
  • /trunk/phase3/includes/SpecialBooksources.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialBooksources.php
@@ -37,7 +37,7 @@
3838 $res = wfQuery( $sql, $fname );
3939 if( ( $s = wfFetchObject( $res ) ) and ( $s->cur_text != "" ) ) {
4040 $bstext = $s->cur_text;
41 - $bstext = str_replace( "WIKI-ISBN", $this->mIsbn, $bstext );
 41+ $bstext = str_replace( "MAGICNUMBER", $this->mIsbn, $bstext );
4242 $noautolist = 1;
4343 }
4444 }

Status & tagging log