diff --git a/lib/weblib.php b/lib/weblib.php
index 56590eb25b4..eb0904483a4 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -282,6 +282,7 @@ function text_to_html($text) {
// Turn smileys into images.
+ $text = ereg_replace(":)", "
wwwroot/pix/s/smiley.gif>", $text);
$text = ereg_replace(":-)", "
wwwroot/pix/s/smiley.gif>", $text);
$text = ereg_replace(":-D", "
wwwroot/pix/s/biggrin.gif>", $text);
$text = ereg_replace(";-)", "
wwwroot/pix/s/wink.gif>", $text);