dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Followup to r61912, make sure hight is actually given, also dont ignore if upright...
[lhc/web/wiklou.git]
/
redirect.php
diff --git
a/redirect.php
b/redirect.php
index
6b69aee
..
699926e
100644
(file)
--- a/
redirect.php
+++ b/
redirect.php
@@
-1,17
+1,17
@@
<?php
<?php
-unset( $DP );
-unset( $IP );
-$wgCommandLineMode = false;
-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(
"WebRequest.php"
);
-
$wgRequest = new WebRequest()
;
+require_once(
'./includes/WebStart.php'
);
+
global $wgArticlePath
;
-$page = $wgRequest->getVal(
"wpDropdown"
);
+$page = $wgRequest->getVal(
'wpDropdown'
);
-$url = str_replace( "$1",
$page
, $wgArticlePath );
+$url = str_replace( "$1",
urlencode( $page )
, $wgArticlePath );
header( "Location: {$url}" );
header( "Location: {$url}" );
-?>