1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Bugtracker #3645 - emote handler not initialised in time

This commit is contained in:
e107steved
2006-12-30 19:44:52 +00:00
parent 9e5bbeede9
commit 70f1f33684

View File

@@ -1,6 +1,12 @@
global $pref, $e107cache, $tp; global $pref, $e107cache, $tp;
if($pref['smiley_activate']) { if($pref['smiley_activate'])
{
if (!is_object($tp->e_emote))
{
require_once(e_HANDLER.'emote_filter.php');
$tp->e_emote = new e_emoteFilter;
}
$code_text = $tp->e_emote->filterEmotesRev($code_text); $code_text = $tp->e_emote->filterEmotesRev($code_text);
} }