r46074 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46073‎ | r46074 | r46075 >
Date:15:58, 23 January 2009
Author:jojo
Status:ok
Tags:
Comment:
fix: if oldid is not given, use getLatest()
Modified paths:
  • /trunk/extensions/Collection/Collection.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.body.php
@@ -983,7 +983,9 @@
984984 $oldid = $wgArticle->getOldID();
985985 if ( $oldid ) {
986986 $params .= '&oldid=' . $oldid;
987 - }
 987+ } else {
 988+ $params .= '&oldid=' . $wgArticle->getLatest();
 989+ }
988990 }
989991 if ( isset( $wgCollectionFormats['rl'] ) ) {
990992 $nav_urls['printable_version_pdf'] = array(

Status & tagging log