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
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue