mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use include_once where applicable
All of these are sourcing function libraries so we don't need to include them more than once. Things that insert actual HTML into the output were left calling include(). Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
4af079a5bd
commit
46f2798524
11 changed files with 23 additions and 23 deletions
|
@ -2,8 +2,7 @@
|
|||
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
||||
|
||||
include("aur.inc");
|
||||
include("aurjson.class.php");
|
||||
include_once("aurjson.class.php");
|
||||
|
||||
if ( $_SERVER['REQUEST_METHOD'] == 'GET' ) {
|
||||
if ( isset($_GET['type']) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue