From 91f44becee0e842514f151cd398a9fc5d346401a Mon Sep 17 00:00:00 2001 From: e107steved Date: Tue, 19 Dec 2006 20:34:12 +0000 Subject: [PATCH] Bug #3039 - underscores in file name wrongly converted --- e107_handlers/emote.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e107_handlers/emote.php b/e107_handlers/emote.php index f19c936db..618bc5c04 100644 --- a/e107_handlers/emote.php +++ b/e107_handlers/emote.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/emote.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:44 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-19 20:34:12 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } @@ -30,7 +30,7 @@ function r_emote() foreach($tp->e_emote->emotes as $key => $value) { - $key = str_replace("!", ".", $key); + $key = str_replace("!", "_", $key); $key = preg_replace("#_(\w{3})$#", ".\\1", $key); $key = e_IMAGE."emotes/" . $pref['emotepack'] . "/" .$key;