]> git.mjollnir.org Git - moodle.git/commitdiff
Added :) smileys as well.
authormartin <martin>
Fri, 12 Apr 2002 13:20:50 +0000 (13:20 +0000)
committermartin <martin>
Fri, 12 Apr 2002 13:20:50 +0000 (13:20 +0000)
lib/weblib.php

index 56590eb25b4af427f50e7cef7fdbc7f26b76590d..eb0904483a4f396ca33654c8ece3159c84fb2ffd 100644 (file)
@@ -282,6 +282,7 @@ function text_to_html($text) {
 
     // Turn smileys into images.
 
+    $text = ereg_replace(":)", "<IMG ALT=smile SRC=$CFG->wwwroot/pix/s/smiley.gif>", $text);
     $text = ereg_replace(":-)", "<IMG ALT=smile SRC=$CFG->wwwroot/pix/s/smiley.gif>", $text);
     $text = ereg_replace(":-D", "<IMG ALT=grin SRC=$CFG->wwwroot/pix/s/biggrin.gif>", $text);
     $text = ereg_replace(";-)", "<IMG ALT=wink SRC=$CFG->wwwroot/pix/s/wink.gif>", $text);