Commit 20704e90 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

pkgfuncs.inc.php: Add missing global keyword

Use the global keyword to import "$AUR_LOCATION" in
add_package_comment().

Regression introduced in d3de6679

.
Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 3d4cb66a
...@@ -212,6 +212,8 @@ function package_comments($pkgid, $dbh=NULL) { ...@@ -212,6 +212,8 @@ function package_comments($pkgid, $dbh=NULL) {
# Add a comment to a package page and send out appropriate notifications # Add a comment to a package page and send out appropriate notifications
# TODO: Move notification logic to separate function where it belongs # TODO: Move notification logic to separate function where it belongs
function add_package_comment($pkgid, $uid, $comment, $dbh=NULL) { function add_package_comment($pkgid, $uid, $comment, $dbh=NULL) {
global $AUR_LOCATION;
if(!$dbh) { if(!$dbh) {
$dbh = db_connect(); $dbh = db_connect();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment