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/html/packages.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/html/packages.php') diff --git a/web/html/packages.php b/web/html/packages.php index 5b2d5ef..ace4599 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -2,10 +2,10 @@ set_include_path(get_include_path() . PATH_SEPARATOR . '../lib'); -include("aur.inc"); # access AUR common functions -set_lang(); # this sets up the visitor's language -include('pkgfuncs.inc'); # package specific functions -check_sid(); # see if they're still logged in +include_once("aur.inc"); # access AUR common functions +set_lang(); # this sets up the visitor's language +include_once('pkgfuncs.inc'); # package specific functions +check_sid(); # see if they're still logged in # Set the title to the current query if required if (isset($_GET['ID'])) { -- cgit v1.2.3-54-g00ecf