- $Ajax->aCommands = array(); // Don't update page on errors
-
- $messages[] = array(E_ERROR, $m[0], null, null);
+ $Ajax->aCommands = array(); // Don't update page via ajax on errors
+ $text = preg_replace('/\bFatal error(<.*?>)?:(.*)/i','', $text);
+ $messages[] = array(E_ERROR, $m[2], null, null);