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:
parent
dd67f966fb
commit
d3d3e45cf7
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue