-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix includes, and make redirects based on the already computed
language value
- Loading branch information
Gabor Hojtsy
committed
Aug 2, 2003
1 parent
0e76f2a
commit 6d0f625
Showing
3 changed files
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
<?php | ||
|
||
include_once "prepend.inc"; | ||
|
||
// $Id$ | ||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; | ||
// Redirect to new manual page | ||
mirror_redirect("/manual/" . $_GET['page']); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
<?php | ||
require_once '../include/prepend.inc'; | ||
|
||
$lang = default_language(); | ||
if (@is_dir($lang)) { | ||
header("Location: $lang/"); | ||
} | ||
header("Location: en/"); | ||
// $Id$ | ||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; | ||
mirror_redirect("/manual/$LANG/index.php"); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters