From bae7d70dafacce751a50f49573b410b6817278db Mon Sep 17 00:00:00 2001 From: mikelittle Date: Thu, 30 Oct 2003 00:46:19 +0000 Subject: [PATCH] Added spaces in smilies array. Non breaking space before image. git-svn-id: http://svn.automattic.com/wordpress/trunk@495 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2vars.php | 50 +++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/b2-include/b2vars.php b/b2-include/b2vars.php index 868a8c40ba..d69332953f 100644 --- a/b2-include/b2vars.php +++ b/b2-include/b2vars.php @@ -205,34 +205,34 @@ $is_IIS = strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Microsoft-IIS') ? 1 : 0; # if the config file does not provide the smilies array, let's define it here if (!isset($b2smiliestrans)) { $b2smiliestrans = array( - ':)' => 'icon_smile.gif', - ':D' => 'icon_biggrin.gif', - ':-D' => 'icon_biggrin.gif', + ' :)' => 'icon_smile.gif', + ' :D' => 'icon_biggrin.gif', + ' :-D' => 'icon_biggrin.gif', ':grin:' => 'icon_biggrin.gif', - ':)' => 'icon_smile.gif', - ':-)' => 'icon_smile.gif', + ' :)' => 'icon_smile.gif', + ' :-)' => 'icon_smile.gif', ':smile:' => 'icon_smile.gif', - ':(' => 'icon_sad.gif', - ':-(' => 'icon_sad.gif', + ' :(' => 'icon_sad.gif', + ' :-(' => 'icon_sad.gif', ':sad:' => 'icon_sad.gif', - ':o' => 'icon_surprised.gif', - ':-o' => 'icon_surprised.gif', + ' :o' => 'icon_surprised.gif', + ' :-o' => 'icon_surprised.gif', ':eek:' => 'icon_surprised.gif', - '8O' => 'icon_eek.gif', - '8-O' => 'icon_eek.gif', + ' 8O' => 'icon_eek.gif', + ' 8-O' => 'icon_eek.gif', ':shock:' => 'icon_eek.gif', - ':?' => 'icon_confused.gif', - ':-?' => 'icon_confused.gif', - ':???:' => 'icon_confused.gif', - '8)' => 'icon_cool.gif', - '8-)' => 'icon_cool.gif', + ' :?' => 'icon_confused.gif', + ' :-?' => 'icon_confused.gif', + ' :???:' => 'icon_confused.gif', + ' 8)' => 'icon_cool.gif', + ' 8-)' => 'icon_cool.gif', ':cool:' => 'icon_cool.gif', ':lol:' => 'icon_lol.gif', - ':x' => 'icon_mad.gif', - ':-x' => 'icon_mad.gif', + ' :x' => 'icon_mad.gif', + ' :-x' => 'icon_mad.gif', ':mad:' => 'icon_mad.gif', - ':P' => 'icon_razz.gif', - ':-P' => 'icon_razz.gif', + ' :P' => 'icon_razz.gif', + ' :-P' => 'icon_razz.gif', ':razz:' => 'icon_razz.gif', ':oops:' => 'icon_redface.gif', ':cry:' => 'icon_cry.gif', @@ -240,14 +240,14 @@ if (!isset($b2smiliestrans)) { ':twisted:' => 'icon_twisted.gif', ':roll:' => 'icon_rolleyes.gif', ':wink:' => 'icon_wink.gif', - ';)' => 'icon_wink.gif', - ';-)' => 'icon_wink.gif', + ' ;)' => 'icon_wink.gif', + ' ;-)' => 'icon_wink.gif', ':!:' => 'icon_exclaim.gif', ':?:' => 'icon_question.gif', ':idea:' => 'icon_idea.gif', ':arrow:' => 'icon_arrow.gif', - ':|' => 'icon_neutral.gif', - ':-|' => 'icon_neutral.gif', + ' :|' => 'icon_neutral.gif', + ' :-|' => 'icon_neutral.gif', ':neutral:' => 'icon_neutral.gif', ':mrgreen:' => 'icon_mrgreen.gif', ); @@ -271,7 +271,7 @@ foreach($b2smiliestrans as $smiley => $img) { for ($i = 0; $i < strlen($smiley); $i = $i + 1) { $smiley_masked .= substr($smiley, $i, 1).chr(160); } - $b2_smiliesreplace[] = "$smiley_masked"; + $b2_smiliesreplace[] = " $smiley_masked"; } add_filter('all', 'wptexturize');