source: trunk/w/redirect.php @ 1484

Revision 1484, 383 bytes checked in by Xiping.Wang, 2 years ago (diff)

[trunk]add mediaiwki 1.16.0beta2 , other directories and files

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