summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 23:00:47 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 23:10:26 +0200
commit6790b36247be55d7cc9fdd6a7880900e9c95a58d (patch)
tree51b1b83f205c5b3728ba29b62142dbe418efef0d
parentaf95c2b1fe42b36647c9ef4b091c99f8aab5a0cc (diff)
downloadaur-6790b36247be55d7cc9fdd6a7880900e9c95a58d.tar.gz
aur-6790b36247be55d7cc9fdd6a7880900e9c95a58d.tar.xz
aur.inc.php: Include routing backend
This needs to be available on every page since it is needed for get_uri() and get_pkg_uri() and "web/html/index.php" isn't executed if the virtual path feature is disabled. Reported-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/html/index.php2
-rw-r--r--web/lib/aur.inc.php1
2 files changed, 1 insertions, 2 deletions
diff --git a/web/html/index.php b/web/html/index.php
index 0af3f2db..1561168e 100644
--- a/web/html/index.php
+++ b/web/html/index.php
@@ -1,8 +1,6 @@
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
-include_once("config.inc.php");
-include_once("routing.inc.php");
include_once("aur.inc.php");
include_once("pkgfuncs.inc.php");
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index 1a6164ed..6dcbb34d 100644
--- a/web/lib/aur.inc.php
+++ b/web/lib/aur.inc.php
@@ -11,6 +11,7 @@ include_once('translator.inc.php');
set_lang();
include_once("config.inc.php");
+include_once("routing.inc.php");
include_once("version.inc.php");
include_once("acctfuncs.inc.php");
include_once("cachefuncs.inc.php");