r51876 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51875‎ | r51876 | r51877 >
Date:10:03, 15 June 2009
Author:jojo
Status:ok
Tags:
Comment:
fix for unset var $oldid
Modified paths:
  • /trunk/extensions/Collection/Collection.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.hooks.php
@@ -211,6 +211,8 @@
212212 if ( !is_null( $wgArticle ) ) {
213213 $oldid = $wgArticle->getOldID();
214214 $params['oldid'] = $oldid;
 215+ } else {
 216+ $oldid = 0;
215217 }
216218
217219 if ( $ajaxHint == 'addpage'

Status & tagging log