From: Brion Vibber Date: Tue, 10 Jul 2007 19:37:12 +0000 (+0000) Subject: Fix regression caused by the namespace check on oldid override. X-Git-Tag: 1.31.0-rc.0~52161 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=326b1c4ceae9d6b0080ed2b6b5dfadadbfa31339;p=lhc%2Fweb%2Fwiklou.git Fix regression caused by the namespace check on oldid override. Don't die if we don't have a valid title yet! --- diff --git a/includes/Wiki.php b/includes/Wiki.php index 897a2d4258..31ecd89668 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -102,7 +102,8 @@ class MediaWiki { $lang->findVariantLink( $title, $ret ); } - if ( $ret->getNamespace() != NS_SPECIAL && $oldid = $request->getInt( 'oldid' ) ) { + if ( $oldid = $request->getInt( 'oldid' ) + && ( is_null( $ret ) || $ret->getNamespace() != NS_SPECIAL ) ) { // Allow oldid to override a changed or missing title. $rev = Revision::newFromId( $oldid ); if( $rev ) {