Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -115,11 +115,12 @@ |
116 | 116 | if( count( $wgContLang->getVariants() ) > 1 && !is_null( $ret ) && $ret->getArticleID() == 0 ) |
117 | 117 | $wgContLang->findVariantLink( $title, $ret ); |
118 | 118 | } |
119 | | - if( ( $oldid = $wgRequest->getInt( 'oldid' ) ) |
120 | | - && ( is_null( $ret ) || $ret->getNamespace() != NS_SPECIAL ) ) { |
121 | | - // Allow oldid to override a changed or missing title. |
122 | | - $rev = Revision::newFromId( $oldid ); |
123 | | - if( $rev ) { |
| 119 | + if( is_null( $ret ) || $ret->getNamespace() != NS_SPECIAL ) { |
| 120 | + $oldid = $wgRequest->getInt( 'oldid' ); |
| 121 | + if( !$oldid ) |
| 122 | + $oldid = $wgRequest->getInt( 'diff' ); |
| 123 | + // Allow oldid to override a changed or missing title |
| 124 | + if( $oldid && ( $rev = Revision::newFromId( $oldid ) ) ) { |
124 | 125 | $ret = $rev->getTitle(); |
125 | 126 | } |
126 | 127 | } |