r32481 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32480‎ | r32481 | r32482 >
Date:20:10, 26 March 2008
Author:brion
Status:old
Tags:
Comment:
don't explode on restricted pages
Modified paths:
  • /trunk/extensions/Collection/Collection.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.body.php
@@ -974,9 +974,11 @@
975975 );
976976 } else {
977977 $params = '?arttitle=' . $skinTemplate->mTitle->getPrefixedURL();
978 - $oldid = $wgArticle->getOldID();
979 - if ( $oldid ) {
980 - $params .= '&oldid=' . $oldid;
 978+ if( $wgArticle ) {
 979+ $oldid = $wgArticle->getOldID();
 980+ if ( $oldid ) {
 981+ $params .= '&oldid=' . $oldid;
 982+ }
981983 }
982984 $nav_urls['download_as_pdf'] = array(
983985 'href' => SkinTemplate::makeSpecialUrlSubpage(

Status & tagging log