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
fetchLanguageNames: fallback to default instead of false
[lhc/web/wiklou.git]
/
redirect.php
diff --git
a/redirect.php
b/redirect.php
index
699926e
..
eb15c6b
100644
(file)
--- a/
redirect.php
+++ b/
redirect.php
@@
-6,12
+6,16
@@
*
* @file
*/
*
* @file
*/
+if ( isset( $_SERVER['MW_COMPILED'] ) ) {
+ require ( 'phase3/includes/WebStart.php' );
+} else {
+ require ( dirname( __FILE__ ) . '/includes/WebStart.php' );
+}
-require_once( './includes/WebStart.php' );
global $wgArticlePath;
$page = $wgRequest->getVal( 'wpDropdown' );
$url = str_replace( "$1", urlencode( $page ), $wgArticlePath );
global $wgArticlePath;
$page = $wgRequest->getVal( 'wpDropdown' );
$url = str_replace( "$1", urlencode( $page ), $wgArticlePath );
-header( "Location: {$url}" );
+header( "Location: {$url}"
, true, 301
);