From 31d0ff64befeb9c4777b51f1ca8d621e2d469753 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 10 Feb 2014 16:07:01 +0100 Subject: warn about deprecated it::error usage --- it.class | 3 +++ 1 file changed, 3 insertions(+) (limited to 'it.class') diff --git a/it.class b/it.class index 25313f6..2b325b8 100644 --- a/it.class +++ b/it.class @@ -127,6 +127,9 @@ static function timerlog($label = '') */ static function error($p = array(), $body = null, $to = null) # $body and $to deprecated { + if ($body || $to) + it::error("deprecated usage of it::error"); + if (!is_array($p)) $p = array('title' => $p, 'body' => $body, 'to' => $to); -- cgit v1.2.3