Browse files

Added :) smileys as well.

  • Loading branch information...
1 parent c4bb2bd commit daa52dac8c36d283f6f5dfae01e0cc47bf0d8f68 martin committed Apr 12, 2002
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/weblib.php
View
1 lib/weblib.php
@@ -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);

0 comments on commit daa52da

Please sign in to comment.