Inzwischen ist der Fehler halbwegs behoben. Allerdings werden die eingebundenen Bilder selbst nicht richtig angezeigt (waren es bisher auch nicht) Emoticons dafür schon.
Bitte die Funktion convertRelativeLinks($text) in der Datei HelpdeskNotify.php austauschen.
Um das Bild mit auszugeben mus die Variable $qrec und dort qrec->msg_id ausgewertet werden. Vorher muss noch bestimmt werden, dass es sich nicht um einen normalen Link handelt sondern um ein Bild, dass über eine ID Aufgerufen wird.
Gruß
Typofix
PHP-Code:
/ /**
* Convert relative links
*/
private function convertRelativeLinks($text)
{
$links = array();
preg_match_all('/href="([^"]+)"/i', $text, $links);
foreach ($links[1] as $link) {
if (!preg_match('@^(http://|https://|ftp:|mailto:)@i', $link)) {
if ($link == '/')
$text = str_replace('href="/"', 'href="' . $this->Environment->base . '"', $text);
else
$text = str_replace($link, $this->Environment->base . $link, $text);
} // if
} // foreach
preg_match_all('/src="([^"]+)"/i', $text, $links);
foreach ($links[1] as $link) {
if (!preg_match('@^(http://|https://)@i', $link)) {
if ($link == '/')
$text = str_replace('src="/"', 'src="' . $this->Environment->base . '"', $text);
else
$text = str_replace('src="' . $link . '"', 'src="' . $this->Environment->base . 'system/modules/helpdesk/HelpdeskFrontendDownload.php?msg=' .'&id='. $link . '"', $text);
// $text = str_replace($link, $this->Environment->base . $link, $text);
} // if
} // foreach
return $text;
} // convertRelativeLinks
Lesezeichen