From: martin Date: Sun, 8 Sep 2002 16:13:10 +0000 (+0000) Subject: Added height and width to smiley icons, to make emails look X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=503eced32793e984540a90a30ccd140558780442;p=moodle.git Added height and width to smiley icons, to make emails look better in circumstances where external images are blocked (eg some webmail programs like squirrelmail). --- diff --git a/lib/weblib.php b/lib/weblib.php index a77e40f0ff..26c8542594 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -290,16 +290,16 @@ function text_to_html($text, $smiley=true, $para=true) { // Turn smileys into images. if ($smiley) { - $text = ereg_replace(":)", "\"{smile}\"wwwroot/pix/s/smiley.gif\">", $text); - $text = ereg_replace(":-)", "\"{smile}\"wwwroot/pix/s/smiley.gif\">", $text); - $text = ereg_replace(":-D", "\"{grin}\"wwwroot/pix/s/biggrin.gif\">", $text); - $text = ereg_replace(";-)", "\"{wink}\"wwwroot/pix/s/wink.gif\">", $text); - $text = ereg_replace("8-)", "\"{wide-eyed}\"wwwroot/pix/s/wideeyes.gif\">", $text); - $text = ereg_replace(":-\(","\"{sad}\"wwwroot/pix/s/sad.gif\">", $text); - $text = ereg_replace(":-P", "\"{tongue-out}\"wwwroot/pix/s/tongueout.gif\">", $text); - $text = ereg_replace(":-/", "\"{mixed}\"wwwroot/pix/s/mixed.gif\">", $text); - $text = ereg_replace(":-o", "\"{surprised}\"wwwroot/pix/s/surprise.gif\">", $text); - $text = ereg_replace("B-)", "\"{cool}\"wwwroot/pix/s/cool.gif\">", $text); + $text = ereg_replace(":)", "\"{smile}\"wwwroot/pix/s/smiley.gif\">", $text); + $text = ereg_replace(":-)", "\"{smile}\"wwwroot/pix/s/smiley.gif\">", $text); + $text = ereg_replace(":-D", "\"{grin}\"wwwroot/pix/s/biggrin.gif\">", $text); + $text = ereg_replace(";-)", "\"{wink}\"wwwroot/pix/s/wink.gif\">", $text); + $text = ereg_replace("8-)", "\"{wide-eyed}\"wwwroot/pix/s/wideeyes.gif\">", $text); + $text = ereg_replace(":-\(","\"{sad}\"wwwroot/pix/s/sad.gif\">", $text); + $text = ereg_replace(":-P", "\"{tongue-out}\"wwwroot/pix/s/tongueout.gif\">", $text); + $text = ereg_replace(":-/", "\"{mixed}\"wwwroot/pix/s/mixed.gif\">", $text); + $text = ereg_replace(":-o", "\"{surprised}\"wwwroot/pix/s/surprise.gif\">", $text); + $text = ereg_replace("B-)", "\"{cool}\"wwwroot/pix/s/cool.gif\">", $text); } if ($para) {