Add error function back, fixes #1446
git-svn-id: https://develop.svn.wordpress.org/trunk@3057 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
32fe0b0527
commit
14326fb55d
@ -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
Block a user