]> git.mjollnir.org Git - moodle.git/commitdiff
code formatting change: switched from alternative syntax to using {}
authorgregb_cc <gregb_cc>
Wed, 12 Mar 2003 21:40:47 +0000 (21:40 +0000)
committergregb_cc <gregb_cc>
Wed, 12 Mar 2003 21:40:47 +0000 (21:40 +0000)
lib/weblib.php

index e109b8f2489b4b72605df638de5800b349b2952d..903d62ed9eec97cb9bf77fb5e73059f6510dfd15 100644 (file)
@@ -501,13 +501,13 @@ function replace_smilies($text) {
         '}-]'  => 'evil.gif',
         );
 
-    if($runonce == false):
+    if($runonce == false){
         foreach ($emoticons as $emoticon => $image){
             $e[] = $emoticon;
             $img[] = "<IMG ALT=\"$emoticon\" WIDTH=15 HEIGHT=15 SRC=\"{$CFG->wwwroot}/pix/s/{$image}\">";
         }
         $runonce = true;
-    endif;
+    }
 
     return str_replace($e, $img, $text);
 }