X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=blobdiff_plain;f=redirect.php;h=699926ec30c39d332d401d150b7a211f6ee44230;hb=057bf94409ee9f7f1a9b5573cdaebf29460c9f10;hp=7c7aa3b165570c76b09fc0c2c42d65b95a2de56b;hpb=239ba392618f751fd5d74da57dcf77cd9a6449a2;p=lhc%2Fweb%2Fwiklou.git diff --git a/redirect.php b/redirect.php index 7c7aa3b165..699926ec30 100644 --- a/redirect.php +++ b/redirect.php @@ -1,22 +1,17 @@ $GLOBALS overwrite vulnerability'); -} -require_once( './includes/Defines.php' ); -require_once( './LocalSettings.php' ); -global $wgArticlePath; +/** + * 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 + */ -require_once( 'includes/WebRequest.php' ); -$wgRequest = new WebRequest(); +require_once( './includes/WebStart.php' ); +global $wgArticlePath; $page = $wgRequest->getVal( 'wpDropdown' ); $url = str_replace( "$1", urlencode( $page ), $wgArticlePath ); header( "Location: {$url}" ); -?>