r52037 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52036‎ | r52037 | r52038 >
Date:09:52, 17 June 2009
Author:tstarling
Status:deferred
Tags:
Comment:
Fix syntax errors.
Modified paths:
  • /trunk/extensions/DynamicPageList/DPL.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DynamicPageList/DPL.php
@@ -513,10 +513,10 @@
514514 function updateArticleByRule($title,$text,$rulesText) {
515515 // we use ; as command delimiter; \; stands for a semicolon
516516 // \n is translated to a real linefeed
517 - $rulesText = str_replace(";",'?,$rulesText);
518 - $rulesText = str_replace('\?,';',$rulesText);
 517+ $rulesText = str_replace(";",'?',$rulesText);
 518+ $rulesText = str_replace('\?',';',$rulesText);
519519 $rulesText = str_replace("\\n","\n",$rulesText);
520 - $rules=split('?,$rulesText);
 520+ $rules=split('?',$rulesText);
521521 $exec=false;
522522 $replaceThis='';
523523 $replacement='';
@@ -606,10 +606,10 @@
607607 function deleteArticleByRule($title,$text,$rulesText) {
608608 // we use ; as command delimiter; \; stands for a semicolon
609609 // \n is translated to a real linefeed
610 - $rulesText = str_replace(";",'?,$rulesText);
611 - $rulesText = str_replace('\?,';',$rulesText);
 610+ $rulesText = str_replace(";",'?',$rulesText);
 611+ $rulesText = str_replace('\?',';',$rulesText);
612612 $rulesText = str_replace("\\n","\n",$rulesText);
613 - $rules=split('?,$rulesText);
 613+ $rules=split('?',$rulesText);
614614 $exec=false;
615615 $message= '';
616616 $reason='';

Status & tagging log