mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
pkgfuncs.inc.php: Add missing global keyword
Use the global keyword to import "$AUR_LOCATION" in
add_package_comment().
Regression introduced in d3de667901
.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
3d4cb66aed
commit
20704e9053
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue