From: Brion Vibber Date: Tue, 10 Jul 2007 20:01:43 +0000 (+0000) Subject: woops -- parens broke teh diffs X-Git-Tag: 1.31.0-rc.0~52160 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=cd83b6bb29ecdacef80ee34766fa43cd192a11b2;p=lhc%2Fweb%2Fwiklou.git woops -- parens broke teh diffs --- diff --git a/includes/Wiki.php b/includes/Wiki.php index 31ecd89668..dc1f709ce8 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -102,7 +102,7 @@ class MediaWiki { $lang->findVariantLink( $title, $ret ); } - if ( $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 );