summaryrefslogtreecommitdiffstats
path: root/web/html/voters.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-18 07:40:33 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-18 08:07:17 +0200
commit8e412cb5b0981ad3c604c99f73e4cbae35973863 (patch)
treea1a0b786e22e79ed7777055d72bcefa7403ace85 /web/html/voters.php
parent9de84d2fd5921e41fe5ae167981421a2dad016fe (diff)
downloadaur-8e412cb5b0981ad3c604c99f73e4cbae35973863.tar.gz
aur-8e412cb5b0981ad3c604c99f73e4cbae35973863.tar.xz
voters.php: Do not re-include libraries
Use include_once() instead of include(). Otherwise, a fatal error is shown if the virtual path feature is used since "web/lib/aur.inc.php" is already included in the routing front end. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/voters.php')
-rw-r--r--web/html/voters.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/voters.php b/web/html/voters.php
index 3ba5248c..c7c59a24 100644
--- a/web/html/voters.php
+++ b/web/html/voters.php
@@ -1,7 +1,7 @@
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
-include('aur.inc.php');
-include('pkgfuncs.inc.php');
+include_once('aur.inc.php');
+include_once('pkgfuncs.inc.php');
$SID = $_COOKIE['AURSID'];