diff --git a/include/functions.inc b/include/functions.inc
index 65c9fa53a16f485c081ec2d128c2b1441f04b0f4..4acc2419e139f5e12f46570541bdad03092454fd 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
/* Configuration file location */
define ("CONFIG_DIR", "/etc/gosa");
/* Configuration file location */
define ("CONFIG_DIR", "/etc/gosa");
+define ("CONFIG_FILE", "gosa.conf-trunk");
define ("CONFIG_TEMPLATE_DIR", "../contrib/");
define ("HELP_BASEDIR", "/var/www/doc/");
define ("CONFIG_TEMPLATE_DIR", "../contrib/");
define ("HELP_BASEDIR", "/var/www/doc/");
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Execute");
exec($command, $output);
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Execute");
exec($command, $output);
- if (preg_match("/^[0-9]+$/", $output)){
+ if (preg_match("/^[0-9]+$/", $output[0])){
return ($output[0]);
} else {
print_red(_("Warning - base_hook is not avialable. Using default base."));
return ($output[0]);
} else {
print_red(_("Warning - base_hook is not avialable. Using default base."));