From: gregb_cc Date: Wed, 12 Mar 2003 21:40:47 +0000 (+0000) Subject: code formatting change: switched from alternative syntax to using {} X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c0f728ba9ea59d77e6d4e219225454b3fe94c86c;p=moodle.git code formatting change: switched from alternative syntax to using {} --- diff --git a/lib/weblib.php b/lib/weblib.php index e109b8f248..903d62ed9e 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -501,13 +501,13 @@ function replace_smilies($text) { '}-]' => 'evil.gif', ); - if($runonce == false): + if($runonce == false){ foreach ($emoticons as $emoticon => $image){ $e[] = $emoticon; $img[] = "\"$emoticon\"wwwroot}/pix/s/{$image}\">"; } $runonce = true; - endif; + } return str_replace($e, $img, $text); }