Thread:Project:Support desk/Fatal error CustomTitle extension/reply

It looks fixed like this :

function onSkinTemplateOutputPageBeforeExec(&$m_skinTemplate, &$m_tpl) {      if (isset($this->customTitle)) {          $m_tpl->set('title', $this->customTitle); $m_tpl->set('pagetitle', $this->customTitle); $text = $m_tpl->data['headelement']; $regex = "#(\)(.*)(\<\/title\>)#e"; $customtitle = $this->customTitle; #####          $customtitle = str_replace ( "'", "\'", $customtitle ); #####          $title = "' '.'$customtitle'.' '"; $text = preg_replace($regex,$title,$text); $m_tpl->set('headelement', $text); }      return true; }