diff options
author | Dan McGee <dan@archlinux.org> | 2009-08-07 03:02:29 +0200 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-08-11 19:58:12 +0200 |
commit | 46f279852475bc520c4d6ae77df04ac4a6897807 (patch) | |
tree | e08c929630bd52a9929e1b93ba13f9f9d472abba /web/lib | |
parent | 4af079a5bd75a83a0ff1465b1f1540684d896fb7 (diff) | |
download | aur-46f279852475bc520c4d6ae77df04ac4a6897807.tar.gz aur-46f279852475bc520c4d6ae77df04ac4a6897807.tar.xz |
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>
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/aurjson.class.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php index daa785f2..29fc4244 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. |