aboutsummaryrefslogtreecommitdiffstats
path: root/redirect.php
blob: f84d88217081a37ea591839b38e37054db98c591 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
unset( $DP );
unset( $IP );
$wgCommandLineMode = false;
define( "MEDIAWIKI", true );

require_once( "./LocalSettings.php" );
global $wgArticlePath;

require_once( "includes/WebRequest.php" );
$wgRequest = new WebRequest();

$page = $wgRequest->getVal( "wpDropdown" );

$url = str_replace( "$1", urlencode( $page ), $wgArticlePath );

header( "Location: {$url}" );
?>