diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index 93994793dd..e572898283 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -637,12 +637,14 @@ function generate_ap_url($ap, $vars=array())
function report_this($message)
{
- return '
'.$message.' Please report this to the developers.
';
+ global $config;
+ return ''.$message.' Please report this to the '.$config['project_name'].' developers.
';
}
function report_this_text($message)
{
- return $message.'\nPlease report this to the developers at '.$config['project_issues'].'\n';
+ global $config;
+ return $message.'\nPlease report this to the '.$config['project_name'].' developers at '.$config['project_issues'].'\n';
}
# Find all the files in the given directory that match the pattern
@@ -650,6 +652,7 @@ function get_matching_files($dir, $match = "/\.php$/")
{
global $config;
+ $list = array();
if ($handle = opendir($dir))
{
while (false !== ($file = readdir($handle)))