summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2014-02-10 16:07:01 +0100
committerUrban Müller2014-02-10 16:07:01 +0100
commit31d0ff64befeb9c4777b51f1ca8d621e2d469753 (patch)
tree865ea7ec515851e1ef56d907fd36c88c4c4aaa5e /it.class
parente84ed0c7e66a69b7bc4acd4015a38223a165d71c (diff)
downloaditools-31d0ff64befeb9c4777b51f1ca8d621e2d469753.tar.gz
itools-31d0ff64befeb9c4777b51f1ca8d621e2d469753.tar.bz2
itools-31d0ff64befeb9c4777b51f1ca8d621e2d469753.zip
warn about deprecated it::error usage
Diffstat (limited to 'it.class')
-rw-r--r--it.class3
1 files changed, 3 insertions, 0 deletions
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);