Fixed a some debugging statements

This commit is contained in:
moodler
2006-09-18 13:24:45 +00:00
parent e51e3fcb34
commit 0e1cc9070b
17 changed files with 23 additions and 40 deletions
+1 -1
View File
@@ -2287,7 +2287,7 @@
$result = str_replace($search,$replace,$content);
if ($result != $content && $CFG->debug>7) { //Debug
if ($result != $content && debugging()) { //Debug
if (!defined('RESTORE_SILENTLY')) {
echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />'; //Debug
}