Add error function back, fixes #1446

git-svn-id: http://svn.automattic.com/wordpress/trunk@3057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-11-13 02:54:49 +00:00
parent dd67f966fb
commit d3d3e45cf7

View File

@ -356,9 +356,22 @@ class MagpieRSS {
}
}
function map_attrs($k, $v) {
return "$k=\"$v\"";
function map_attrs($k, $v) {
return "$k=\"$v\"";
}
function error( $errormsg, $lvl = E_USER_WARNING ) {
// append PHP's error message if track_errors enabled
if ( isset($php_errormsg) ) {
$errormsg .= " ($php_errormsg)";
}
if ( MAGPIE_DEBUG ) {
trigger_error( $errormsg, $lvl);
} else {
error_log( $errormsg, 0);
}
}
}
require_once( dirname(__FILE__) . '/class-snoopy.php');