Merged SC139 from stable

This commit is contained in:
moodler
2005-07-12 08:00:51 +00:00
parent b779602b0e
commit f5e1319ec3
15 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -1650,7 +1650,7 @@
}
if ($result != $content && $CFG->debug>7) { //Debug
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />"; //Debug
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />'; //Debug
} //Debug
return $result;
+1 -1
View File
@@ -2182,7 +2182,7 @@
$result = str_replace($search,$replace,$content);
if ($result != $content && $CFG->debug>7) { //Debug
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />"; //Debug
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />'; //Debug
} //Debug
return $result;
+1 -1
View File
@@ -319,7 +319,7 @@
$assignment->description = addslashes($result);
$status = update_record("assignment",$assignment);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
+1 -1
View File
@@ -217,7 +217,7 @@
$chat->intro = addslashes($result);
$status = update_record("chat",$chat);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
+1 -1
View File
@@ -338,7 +338,7 @@ function choice_options_restore_mods($choiceid,$info,$restore) {
$choice->text = addslashes($result);
$status = update_record("choice",$choice);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
+2 -2
View File
@@ -984,7 +984,7 @@
$post->message = addslashes($result);
$status = update_record("forum_posts",$post);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
@@ -1014,7 +1014,7 @@
$forum->intro = addslashes($result);
$status = update_record("forum",$forum);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
+2 -2
View File
@@ -599,7 +599,7 @@
$entry->definition = addslashes($result);
$status = update_record("glossary_entries",$entry);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
@@ -629,7 +629,7 @@
$glossary->intro = addslashes($result);
$status = update_record("glossary",$glossary);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
+1 -1
View File
@@ -80,7 +80,7 @@
$label->content = addslashes($result);
$status = update_record("label", $label);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
+1 -1
View File
@@ -729,7 +729,7 @@
$page->contents = addslashes($result);
$status = update_record("lesson_pages",$page);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
+1 -1
View File
@@ -1951,7 +1951,7 @@
$quiz->intro = addslashes($result);
$status = update_record("quiz",$quiz);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
+2 -2
View File
@@ -191,8 +191,8 @@
$resource->summary = addslashes($result2);
$status = update_record("resource",$resource);
if ($CFG->debug>7) {
echo "<br /><hr />".$content1."<br />changed to</br>".$result1."<hr /><br />";
echo "<br /><hr />".$content2."<br />changed to</br>".$result2."<hr /><br />";
echo '<br /><hr />'.htmlentities($content1).'<br />changed to<br />'.htmlentities($result1).'<hr /><br />';
echo '<br /><hr />'.htmlentities($content2).'<br />changed to<br />'.htmlentities($result2).'<hr /><br />';
}
}
//Do some output
+1 -1
View File
@@ -453,7 +453,7 @@
$scorm->summary = addslashes($result);
$status = update_record("scorm",$scorm);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
+1 -1
View File
@@ -281,7 +281,7 @@
$survey->intro = addslashes($result);
$status = update_record("survey",$survey);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
+2 -2
View File
@@ -350,7 +350,7 @@
$page->content = addslashes($result);
$status = update_record("wiki_pages",$page);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
@@ -380,7 +380,7 @@
$wiki->summary = addslashes($result);
$status = update_record("wiki",$wiki);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output
+1 -1
View File
@@ -733,7 +733,7 @@
$workshop->description = addslashes($result);
$status = update_record("workshop",$workshop);
if ($CFG->debug>7) {
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
}
}
//Do some output