initialising the smiley function
This commit is contained in:
parent
3749d70ae1
commit
d6330fd3f7
@ -213,6 +213,18 @@ function dolWebsiteReplacementOfLinks($website, $content, $removephppart = 0, $c
|
|||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts smiley string into the utf8 sequence.
|
||||||
|
* @param string $content Content to replace
|
||||||
|
* @return string Replacement of all smiley strings with their utf8 code
|
||||||
|
* @see dolWebsiteOutput()
|
||||||
|
*/
|
||||||
|
function dolReplaceSmileyCodeWithUTF8($content)
|
||||||
|
{
|
||||||
|
return $content;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render a string of an HTML content and output it.
|
* Render a string of an HTML content and output it.
|
||||||
* Used to ouput the page when viewed from a server (Dolibarr or Apache).
|
* Used to ouput the page when viewed from a server (Dolibarr or Apache).
|
||||||
@ -369,6 +381,8 @@ function dolWebsiteOutput($content, $contenttype = 'html', $containerid = '')
|
|||||||
$content = str_replace('<body id="bodywebsite" class="bodywebsite', '<body id="bodywebsite" class="bodywebsite '.$conf->global->WEBSITE_ADD_CSS_TO_BODY, $content);
|
$content = str_replace('<body id="bodywebsite" class="bodywebsite', '<body id="bodywebsite" class="bodywebsite '.$conf->global->WEBSITE_ADD_CSS_TO_BODY, $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$content = dolReplaceSmileyCodeWithUTF8($content);
|
||||||
|
|
||||||
dol_syslog("dolWebsiteOutput end");
|
dol_syslog("dolWebsiteOutput end");
|
||||||
|
|
||||||
print $content;
|
print $content;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user