diff --git a/deletecomment.php b/deletecomment.php index 3bd7fa8..6f570e3 100644 --- a/deletecomment.php +++ b/deletecomment.php @@ -65,7 +65,7 @@ $email = getNotifyEmailAddressList($appId, $versionId); if($email) { $fullAppName = "Application: ".lookupAppName($appId)." Version: ".lookupVersionName($appId, $versionId); - $ms .= apidb_fullurl("appview.php?appId=$appId&versionId=$versionId")."\n"; + $ms .= APPDB_ROOT."appview.php?appId=$appId&versionId=$versionId\n"; $ms .= "\n"; $ms .= ($current->username ? $current->username : "Anonymous")." deleted comment from ".$fullAppName."\n"; $ms .= "\n"; diff --git a/include/incl.php b/include/incl.php index 72f81d7..7a8c20e 100644 --- a/include/incl.php +++ b/include/incl.php @@ -238,9 +238,12 @@ function dumpmsgbuffer() mysql_query("DELETE FROM sessionMessages WHERE sessionId = '$PHPSESSID'"); } +/* + * Statics + */ +define("APPDB_ROOT", "http://appdb.winehq.org/"); define("STANDARD_NOTIFY_FOOTER","------- You are receiving this mail because: -------\n". - "You are an maintainer of this app or an appdb administrator\n". - "to change your preverences go to: http://appdb.winehq.org/preferences.php\n"); - +"You are an maintainer of this app or an appdb administrator\n". +"to change your preferences go to: ".APPDB_ROOT."preferences.php\n"); ?>