mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
9de84d2fd5
commit
8e412cb5b0
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||||
include('aur.inc.php');
|
include_once('aur.inc.php');
|
||||||
include('pkgfuncs.inc.php');
|
include_once('pkgfuncs.inc.php');
|
||||||
|
|
||||||
$SID = $_COOKIE['AURSID'];
|
$SID = $_COOKIE['AURSID'];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue