r56899 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56898‎ | r56899 | r56900 >
Date:21:48, 24 September 2009
Author:thomasv
Status:ok
Tags:
Comment:
do not allow 'pages' command on index pages
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -711,6 +711,10 @@
712712 $to = $args['to'];
713713 $header = $args['header'];
714714
 715+ # abort if the tag is on an index page
 716+ if ( preg_match( "/^$index_namespace:(.*?)(\/([0-9]*)|)$/", $wgTitle->getPrefixedText() ) ) {
 717+ return "";
 718+ }
715719 if( ! $index ) {
716720 return '<strong class="error">' . wfMsgForContent( 'proofreadpage_index_expected' ) . '</strong>';
717721 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r56901Merge r56899 - fix for recursion loop in ProofreadPagebrion21:56, 24 September 2009

Status & tagging log