PHP 5.2 Compatibility
This commit is contained in:
parent
164758a5f0
commit
98d6a715a2
|
@ -73,7 +73,7 @@ abstract class ActionScheduler_Logger {
|
||||||
$this->log( $action_id, __( 'action complete', 'action-scheduler' ) );
|
$this->log( $action_id, __( 'action complete', 'action-scheduler' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
public function log_failed_action( $action_id, \Exception $exception ) {
|
public function log_failed_action( $action_id, Exception $exception ) {
|
||||||
$this->log( $action_id, sprintf( __( 'action failed: %s', 'action-scheduler' ), $exception->getMessage() ) );
|
$this->log( $action_id, sprintf( __( 'action failed: %s', 'action-scheduler' ), $exception->getMessage() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,4 +95,4 @@ abstract class ActionScheduler_Logger {
|
||||||
$this->log( $action_id, __( 'action ignored', 'action-scheduler' ) );
|
$this->log( $action_id, __( 'action ignored', 'action-scheduler' ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue