Skip to content
Snippets Groups Projects
Commit af03ba55 authored by Peter Rotich's avatar Peter Rotich
Browse files

Use config URL instead of THISPAGE

THISPAGE is unreliable for CLI cron calls. It was historically used so the
admin could figure out which file/page generated the error. But with
backtrace support we no longer need it.
parent fdabf274
No related branches found
No related tags found
No related merge requests found
......@@ -224,12 +224,11 @@ class osTicket {
function alertAdmin($subject, $message, $log=false) {
//Set admin's email address
if(!($to=$this->getConfig()->getAdminEmail()))
$to=ADMIN_EMAIL;
if (!($to = $this->getConfig()->getAdminEmail()))
$to = ADMIN_EMAIL;
//append URL to the message
$message.="\n\n".THISPAGE;
$message.="\n\n".$this->getConfig()->getBaseUrl();
//Try getting the alert email.
$email=null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment