Index: branches/RC/core/kernel/utility/debugger.php =================================================================== diff -u -N -r10459 -r10577 --- branches/RC/core/kernel/utility/debugger.php (.../debugger.php) (revision 10459) +++ branches/RC/core/kernel/utility/debugger.php (.../debugger.php) (revision 10577) @@ -459,8 +459,8 @@ default: // number or string - if (mb_strlen($array) > 200) { - $array = mb_substr($array, 0, 50).' ...'; + if (strlen($array) > 200) { + $array = substr($array, 0, 50).' ...'; } return $array."\n"; break; @@ -490,8 +490,8 @@ case 'integer': case 'double': case 'string': - if (mb_strlen($array[$key]) > 200) { - $array[$key] = mb_substr($array[$key], 0, 50).' ...'; + if (strlen($array[$key]) > 200) { + $array[$key] = substr($array[$key], 0, 50).' ...'; } $output .= $tabsign.'['.$key.'] = '.$array[$key]."\n"; break; @@ -624,7 +624,7 @@ function isGecko() { // we need isset because we may run scripts from shell with no user_agent at all - return isset($_SERVER['HTTP_USER_AGENT']) && mb_strpos(mb_strtolower($_SERVER['HTTP_USER_AGENT']), 'firefox') !== false; + return isset($_SERVER['HTTP_USER_AGENT']) && strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'firefox') !== false; } /** @@ -752,10 +752,17 @@ $this->appendHTML('ScriptName: '.$this->getFileLink($script, 1, basename($script)).' ('.dirname($script).')'); if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] == 'yes') { - $this->appendHTML('RequestURI: '.$_SERVER['REQUEST_URI'].' (QS Length:'.mb_strlen($_SERVER['QUERY_STRING']).')'); + $this->appendHTML('RequestURI: '.$_SERVER['REQUEST_URI'].' (QS Length:'.strlen($_SERVER['QUERY_STRING']).')'); } - $this->appendHTML('DomViewer:  '); + $tools_html = ' + + + + +
' . $this->_getDomViewerHTML() . '' . $this->_getToolsHTML() . '
'; + $this->appendHTML($tools_html); + ob_start(); ?> @@ -1081,7 +1088,9 @@ return ''; } + $application =& kApplication::Instance(); $dbg_path = str_replace(FULL_PATH, '', $this->tempFolder); + ob_start(); // the