From 46f279852475bc520c4d6ae77df04ac4a6897807 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 6 Aug 2009 20:02:29 -0500 Subject: 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 Signed-off-by: Loui Chang --- web/lib/aurjson.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'web/lib/aurjson.class.php') diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php index daa785f..29fc424 100644 --- a/web/lib/aurjson.class.php +++ b/web/lib/aurjson.class.php @@ -4,11 +4,12 @@ * * This file contains the AurRPC remote handling class **/ -if (!extension_loaded('json')) -{ +if (!extension_loaded('json')) { dl('json.so'); } +include_once("aur.inc"); + /** * This class defines a remote interface for fetching data * from the AUR using JSON formatted elements. -- cgit v1.2.3-70-g09d2