MagpieRSS::error
Method of the class: MagpieRSS{}
No Hooks.
Returns
null. Nothing (null).
Usage
$MagpieRSS = new MagpieRSS(); $MagpieRSS->error( $errormsg, $lvl );
- $errormsg(required)
- .
- $lvl
- .
Default:E_USER_WARNING
MagpieRSS::error() MagpieRSS::error code WP 7.0
function error( $errormsg, $lvl = E_USER_WARNING ) {
if ( MAGPIE_DEBUG ) {
wp_trigger_error('', $errormsg, $lvl);
} else {
error_log( $errormsg, 0);
}
}