MediaWiki  1.23.2
Go to the documentation of this file.
1 <?php
40  function __construct() {
41  parent::__construct( 'Diff' );
42  $this->mAllowedRedirectParams = array();
43  }
45  function getRedirect( $subpage ) {
46  $parts = explode( '/', $subpage );
48  // Try to parse the values given, generating somewhat pretty URLs if possible
49  if ( count( $parts ) === 1 && $parts[0] !== '' ) {
50  $this->mAddedRedirectParams['diff'] = $parts[0];
51  } elseif ( count( $parts ) === 2 ) {
52  $this->mAddedRedirectParams['oldid'] = $parts[0];
53  $this->mAddedRedirectParams['diff'] = $parts[1];
54  } else {
55  // Wrong number of parameters, bail out
56  throw new ErrorPageError( 'nopagetitle', 'nopagetext' );
57  }
59  return true;
60  }
61 }
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
Shortcut to construct a special page alias.
Definition: RedirectSpecialPage.php:29
Redirect from Special:Diff/### to index.php?diff=### and from Special:Diff/###/### to index....
Definition: SpecialDiff.php:39
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
getRedirect( $subpage)
If the special page is a redirect, then get the Title object it redirects to.
Definition: SpecialDiff.php:45
Definition: SpecialDiff.php:40
An error page which can definitely be safely rendered using the OutputPage.
Definition: ErrorPageError.php:27