blob: eb15c6b96eb6e3fa07d9666d3f8666f3c1b574c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
/**
* Script that redirects to the article passed in the "wpDropdown" parameter.
* This is used by the nostalgia skin for the special pages drop-down
*
* @file
*/
if ( isset( $_SERVER['MW_COMPILED'] ) ) {
require ( 'phase3/includes/WebStart.php' );
} else {
require ( dirname( __FILE__ ) . '/includes/WebStart.php' );
}
global $wgArticlePath;
$page = $wgRequest->getVal( 'wpDropdown' );
$url = str_replace( "$1", urlencode( $page ), $wgArticlePath );
header( "Location: {$url}", true, 301 );
|