]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18223 removed repeated format_text() - should be applied only once
authorskodak <skodak>
Tue, 17 Feb 2009 23:01:30 +0000 (23:01 +0000)
committerskodak <skodak>
Tue, 17 Feb 2009 23:01:30 +0000 (23:01 +0000)
admin/report/spamcleaner/index.php

index 0de8b33b7412603db9d8cc091c522e67842e692d..7bd2d3623e24a6506078daa09e7580cdbc07c539 100755 (executable)
@@ -263,10 +263,10 @@ function print_user_entry($user, $keywords, $count) {
         $html .= '</td>';
 
         foreach ($keywords as $keyword) {
-            $user->description = format_text(highlight($keyword, $user->description), FORMAT_MOODLE);
+            $user->description = highlight($keyword, $user->description);
         }
 
-        $html .= '<td align="left">'.$user->description.'</td>';
+        $html .= '<td align="left">'.format_text($user->description, FORMAT_MOODLE).'</td>';
         $html .= '<td width="100px" align="center">';
         $html .= '<button onclick="del_user(this,'.$user->id.')">'.get_string('deleteuser', 'admin').'</button><br />';
         $html .= '<button onclick="ignore_user(this,'.$user->id.')">'.get_string('ignore', 'admin').'</button>';