index 2024321f3e6371307b6ba27898bc10026bc9103b..c1e7184a548eb1fda0474ae8f27bf46235672077 100644 (file)
new log("debug","all",$errfile,array(),"Type:".$errno.", Message:".$errstr.", File:".$errfile.", Line: ".$errline);
}
+ // Log errors in usage DB
+ if(class_exists('stats') && !preg_match("/No such object/",$errstr)){
+ stats::log('error', $class = 'ERROR', $category = array(), $action = __FUNCTION__,
+ $amount = 1, $duration = 0, $errno);
+ }
+
/* Create header as needed */
if ($error_collector == ""){
<td><span>"._("Generating this page caused the PHP interpreter to raise some errors!")."</span></td>
<td align='right'>
<a href=\"mailto:gosa-bugs@oss.gonicus.de?subject=GOsa%20bugreport&body=%BUGBODY%\">
- ".image('images/mailto.png')." "._("Send bugreport")."
+ ".image('images/mailto.png')." "._("Send bug report")."
</a>
</td>
<td align='right'>