Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -974,9 +974,11 @@ |
975 | 975 | ); |
976 | 976 | } else { |
977 | 977 | $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 | + } |
981 | 983 | } |
982 | 984 | $nav_urls['download_as_pdf'] = array( |
983 | 985 | 'href' => SkinTemplate::makeSpecialUrlSubpage( |