summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-05-26 08:46:49 +0000
committeralecpl <alec@alec.pl>2010-05-26 08:46:49 +0000
commit874ff4d4be5a8744052f9bcd810f62ac1da1193b (patch)
tree85fdfa2080d65e719872e887cebdeb1255b7bac1 /program/include/main.inc
parent14a4ac556ee050a7f07194b151af15173f5853bc (diff)
- Fix raise_error() in Installer (#1486756)
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 409d6eed2..6a8179127 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1630,6 +1630,7 @@ class rcube_base_replacer
}
}
+
/**
* Throw system error and show error page
*
@@ -1642,6 +1643,8 @@ class rcube_base_replacer
* @param boolean True to log the error
* @param boolean Terminate script execution
*/
+// may be defined in Installer
+if (!function_exists('raise_error')) {
function raise_error($arg=array(), $log=false, $terminate=false)
{
global $__page_content, $CONFIG, $OUTPUT, $ERROR_CODE, $ERROR_MESSAGE;
@@ -1658,6 +1661,7 @@ function raise_error($arg=array(), $log=false, $terminate=false)
exit;
}
}
+}
/**