summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-09-18 13:28:33 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-18 14:01:58 +0200
commit20704e90534beeb0ce09276bd7954086c3b12d7a (patch)
treeca90ecd77e3d93e04e351a2dcabb4435fe837cbf /web/lib/pkgfuncs.inc.php
parent3d4cb66aed66313f97c942faa0dc7a4df50bfff2 (diff)
downloadaurweb-20704e90534beeb0ce09276bd7954086c3b12d7a.tar.xz
pkgfuncs.inc.php: Add missing global keyword
Use the global keyword to import "$AUR_LOCATION" in add_package_comment(). Regression introduced in d3de6679010a1d140794305e747f1af0e7f21834. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/pkgfuncs.inc.php')
-rw-r--r--web/lib/pkgfuncs.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index b2daf0e..0b3a6cb 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -212,6 +212,8 @@ function package_comments($pkgid, $dbh=NULL) {
# Add a comment to a package page and send out appropriate notifications
# TODO: Move notification logic to separate function where it belongs
function add_package_comment($pkgid, $uid, $comment, $dbh=NULL) {
+ global $AUR_LOCATION;
+
if(!$dbh) {
$dbh = db_connect();
}