Removing text_filter function calls (function is unused)

skala
Julio Montoya 13 years ago
parent 70889e4b9b
commit a308a976d3
  1. 2
      main/admin/calendar.lib.php
  2. 1
      main/admin/calendar_view_print.php
  3. 1
      main/calendar/agenda.inc.php
  4. 2
      main/calendar/myagenda.inc.php
  5. 1
      main/calendar/print.php
  6. 2
      main/course_description/listing.php
  7. 2
      main/exercice/answer_admin.inc.php
  8. 2
      main/exercice/exercise.class.php
  9. 11
      main/exercice/export/scorm/scorm_classes.php
  10. 1
      main/exercice/question.class.php
  11. 2
      main/inc/lib/course.lib.php

@ -816,7 +816,6 @@ function display_agenda_items() {
--------------------------------------------------*/
$content = $myrow['content'];
$content = make_clickable($content);
$content = text_filter($content);
echo "<tr class='row_even'>";
echo "<td colspan='3'>";
@ -1017,7 +1016,6 @@ function display_one_agenda_item($agenda_id)
$content = $myrow['content'];
$content = make_clickable($content);
$content = text_filter($content);
//echo "<tr><td class=\"".$text_style."\" colspan='2'>";
//echo $content;
//echo "</td></tr>";

@ -52,7 +52,6 @@ while($row=Database::fetch_array($result))
{
$row['content'] = $row['content'];
$row['content'] = make_clickable($row['content']);
$row['content'] = text_filter($row['content']);
$row['content'] = str_replace('<a ','<a target="_blank" ',$row['content']);
if(!empty($row['title']))

@ -2135,7 +2135,6 @@ function display_one_agenda_item($agenda_id) {
// Content
$content = $myrow['content'];
$content = make_clickable($content);
$content = text_filter($content);
echo '<tr class="row_even">';
echo '<td '.(api_is_allowed_to_edit()?'colspan="3"':'colspan="2"'). '>';

@ -889,7 +889,7 @@ function show_simple_personal_agenda($user_id) {
/*
$content = $myrow['title'];
$content = make_clickable($content);
$content = text_filter($content);*/
*/
return $content;
}
} else {

@ -48,7 +48,6 @@ $result = Database::query($sql);
while($row=Database::fetch_array($result)) {
$row['content'] = $row['content'];
$row['content'] = make_clickable($row['content']);
$row['content'] = text_filter($row['content']);
$row['content'] = str_replace('<a ','<a target="_blank" ',$row['content']);
if(!empty($row['title'])) {

@ -72,7 +72,7 @@ if (isset($descriptions) && count($descriptions) > 0) {
echo $description['title'];
echo '</div>';
echo '<div class="sectioncomment">';
echo text_filter($description['content']);
echo $description['content'];
echo '</div>';
}
} else {

@ -254,7 +254,7 @@ if ($submitAnswers || $buttonBack) {
// we save the answer because it will be modified
//$temp=$reponse;
$temp = text_filter($reponse);
$temp = $reponse;
/* // Deprecated code.
// 1. find everything between the [tex] and [/tex] tags

@ -2736,7 +2736,7 @@ class Exercise {
} elseif($answerType==MATCHING) {
if ($origin != 'learnpath') {
echo '<tr>';
echo '<td>'.text_filter($answer_matching[$answerId]).'</td><td>'.text_filter($user_answer).' / <b><span style="color: #008000;">'.text_filter($answer_matching[$answerCorrect]).'</span></b></td>';
echo '<td>'.$answer_matching[$answerId].'</td><td>'.$user_answer.' / <b><span style="color: #008000;">'.text_filter($answer_matching[$answerCorrect]).'</span></b></td>';
echo '</tr>';
}
}

@ -124,12 +124,12 @@ class ScormQuestion extends Question
$cols = 2;
$s='<tr>' .
'<td colspan="'.$cols.'" id="question_'.$this->id.'_title" valign="middle" style="background-color:#d6d6d6;">' . "\n" .
text_filter($title).
$title.
'</td>' . "\n" .
'</tr>' . "\n" .
'<tr>' . "\n" .
'<td valign="top" colspan="'.$cols.'">' . "\n" .
'<i>'.text_filter($description).'</i>' . "\n" .
'<i>'.$description.'</i>' . "\n" .
'</td>' . "\n" .
'</tr>' . "\n";
return $s;
@ -442,12 +442,9 @@ class ScormAnswerMatching extends Answer
// options (A, B, C, ...) that will be put into the list-box
$Select[$answerId]['Lettre']=$cpt1;
// answers that will be shown at the right side
$answer = text_filter($answer);
$Select[$answerId]['Reponse']=$answer;
$Select[$answerId]['Reponse'] = $answer;
$cpt1++;
}
else
{
} else {
$s.='<tr>'."\n";
$s.='<td width="40%" valign="top">'."\n".'<b>'.$cpt2.'</b>.&nbsp;'.$answer."\n</td>\n";
$s.='<td width="20%" align="center">&nbsp;&nbsp;<select name="'.$identifier.$cpt2.'" id="'.$identifier.$cpt2.'">';

@ -189,7 +189,6 @@ abstract class Question
* @return - string - question title
*/
function selectTitle() {
$this->question=text_filter($this->question);
return $this->question;
}

@ -2660,7 +2660,7 @@ class CourseManager {
$data .= $description->title;
$data .= '</div>';
$data .= '<div class="sectioncomment">';
$data .= text_filter($description->content);
$data .= $description->content;
$data .= '</div>';
}
} else {

Loading…
Cancel
Save