Skip to content
Snippets Groups Projects
Commit 505bcbb1 authored by JediKev's avatar JediKev
Browse files

Merge remote-tracking branch 'origin/develop' into develop-next

parents 7869644b 25d775e4
No related branches found
No related tags found
No related merge requests found
osTicket
========
<a href="http://osticket.com"><img src="http://osticket.com/sites/default/files/osTicket.jpg"
<a href="https://osticket.com"><img height="80px" width="80px" src="images/favicon.png"
align="left" hspace="10" vspace="6"></a>
**osTicket** is a widely-used open source support ticket system. It seamlessly
......
images/favicon.png

28.4 KiB

......@@ -25,12 +25,15 @@ class BaseError extends Exception {
global $ost;
parent::__construct(__($message));
$message = str_replace(ROOT_DIR, '(root)/', _S($message));
if ($ost && $ost->getConfig()->getLogLevel() == 3)
$message .= "\n\n" . $this->getBacktrace();
if ($ost) {
$message = str_replace(ROOT_DIR, '(root)/', _S($message));
$ost->logError($this->getTitle(), $message, static::$sendAlert);
if ($ost->getConfig()->getLogLevel() == 3)
$message .= "\n\n" . $this->getBacktrace();
$ost->logError($this->getTitle(), $message, static::$sendAlert);
}
}
function getTitle() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment