r45413 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45412‎ | r45413 | r45414 >
Date:15:25, 5 January 2009
Author:jojo
Status:ok
Tags:
Comment:
do not append revision to display titles
Modified paths:
  • /trunk/extensions/Collection/Collection.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.body.php
@@ -534,10 +534,10 @@
535535 $displayTitle = $match[3];
536536 $oldid = -1;
537537 $currentVersion = 1;
538 - } else if ( preg_match( '/\[\{\{fullurl:(.*?)\|oldid=(.*?)\}\} (.*?) \((.*?)\)\]/', $articleTitle, $match ) ) {
 538+ } else if ( preg_match( '/\[\{\{fullurl:(.*?)\|oldid=(.*?)\}\}\s+(.*?)\]/', $articleTitle, $match ) ) {
539539 $articleTitle = $match[1];
540540 $displayTitle = $match[3];
541 - $oldid = $match[4];
 541+ $oldid = $match[2];
542542 $currentVersion = 0;
543543 }
544544
@@ -612,7 +612,6 @@
613613 } else {
614614 $articleText .= $item['title'];
615615 }
616 - $articleText .= " (" . $item['revision'] . ")]\n";
617616 }
618617 }
619618 //$articleText .= $item['revision'] . "/" . $item['latest']."\n";

Status & tagging log