mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Fixed annoying popup when debugging
This commit is contained in:
14
class2.php
14
class2.php
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||||
| $Revision: 1.27 $
|
| $Revision: 1.28 $
|
||||||
| $Date: 2007-10-30 00:48:23 $
|
| $Date: 2007-11-09 05:41:37 $
|
||||||
| $Author: e107coders $
|
| $Author: streaky $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
//
|
//
|
||||||
@@ -1506,12 +1506,16 @@ function include_lan($path, $force = false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!function_exists("print_a")) {
|
if(!function_exists("print_a")) {
|
||||||
|
$charset = "utf-8";
|
||||||
|
if(defined("CHARSET")) {
|
||||||
|
$charset = CHARSET;
|
||||||
|
}
|
||||||
function print_a($var, $return = false) {
|
function print_a($var, $return = false) {
|
||||||
if(!$return){
|
if(!$return){
|
||||||
echo '<pre>'.print_r($var, true).'</pre>';
|
echo '<pre>'.htmlspecialchars(print_r($var, true), ENT_QUOTES, $charset).'</pre>';
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return '<pre>'.print_r($var, true).'</pre>';
|
return '<pre>'.htmlspecialchars(print_r($var, true), ENT_QUOTES, $charset).'</pre>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user