updated language code assignments
* (bug 5081) Remove bogus fix for invalid characters in links which simply
broke use of legitimate multiple whitespace characters in bracketed link.
-
+* (bug 4838) Add relative oldids (prev, next, cur) for raw pages
+ Patch by Lupin
=== Caveats ===
$smaxage = $this->mRequest->getIntOrNull( 'smaxage', $wgSquidMaxage );
$maxage = $this->mRequest->getInt( 'maxage', $wgSquidMaxage );
$this->mExpandTemplates = $this->mRequest->getVal( 'templates' ) === 'expand';
- $this->mOldId = $this->mRequest->getInt( 'oldid' );
+
+ $oldid = $this->mRequest->getInt( 'oldid' );
+ switch ( $wgRequest->getText( 'direction' ) ) {
+ case 'next':
+ $oldid = $this->mTitle->getNextRevisionId( $oldid );
+ break;
+ case 'prev':
+ $oldid = $this->mTitle->getPreviousRevisionId( $oldid );
+ break;
+ case 'cur':
+ $oldid = 0;
+ break;
+ }
+ $this->mOldId = $oldid;
+
# special case for 'generated' raw things: user css/js
$gen = $this->mRequest->getVal( 'gen' );