From 20704e90534beeb0ce09276bd7954086c3b12d7a Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 18 Sep 2012 13:28:33 +0200 Subject: 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 --- web/lib/pkgfuncs.inc.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/lib/pkgfuncs.inc.php') 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(); } -- cgit v1.2.3-70-g09d2