diff options
author | Romain d'Alverny <rda@mageia.org> | 2013-03-30 16:50:02 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2013-03-30 16:50:02 +0000 |
commit | 82fc8821a315e9b5a535d58b1988c637f181a886 (patch) | |
tree | dcf3af4db2aef2c4a77dd609239f3fb8b9a03805 /js/index.php | |
parent | 1a7ef0b9afe2e21df458fc3b7660057e8369805d (diff) | |
download | nav-82fc8821a315e9b5a535d58b1988c637f181a886.tar nav-82fc8821a315e9b5a535d58b1988c637f181a886.tar.gz nav-82fc8821a315e9b5a535d58b1988c637f181a886.tar.bz2 nav-82fc8821a315e9b5a535d58b1988c637f181a886.tar.xz nav-82fc8821a315e9b5a535d58b1988c637f181a886.zip |
makes navigation local, depends on nav vhost; easier for local dev
Diffstat (limited to 'js/index.php')
-rw-r--r-- | js/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/index.php b/js/index.php index 9373b09..a9a07a3 100644 --- a/js/index.php +++ b/js/index.php @@ -21,4 +21,4 @@ //header('Access-Control-Allow-Methods: GET'); header('Content-Type: text/javascript;charset=utf-8'); header(sprintf('Expires: %s', gmdate('r', strtotime('+2 day')))); -readfile('source.js');
\ No newline at end of file +echo str_replace('nav.mageia.org', $_SERVER['HTTP_HOST'], file_get_contents('source.js')); |