redirect.php 383 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * Script that redirects to the article passed in the "wpDropdown" parameter.
  4. * This is used by the nostalgia skin for the special pages drop-down
  5. *
  6. * @file
  7. */
  8. require_once( './includes/WebStart.php' );
  9. global $wgArticlePath;
  10. $page = $wgRequest->getVal( 'wpDropdown' );
  11. $url = str_replace( "$1", urlencode( $page ), $wgArticlePath );
  12. header( "Location: {$url}" );