From 66eb60ccf927e04a4a5bfb9a04d219b5d7b5a3a8 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 4 Apr 2008 16:38:07 +0000 Subject: Deprecate second parameter (config) to constructor of generated classes --- it_dbi.class | 2 ++ 1 file changed, 2 insertions(+) (limited to 'it_dbi.class') diff --git a/it_dbi.class b/it_dbi.class index 4c4b291..be5f19c 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -150,6 +150,8 @@ function createclass($p) { function $classname(\$query = null, \$p = array()) { + if (\$p) + it::error('title' => 'Deprecated use of \$p parameter for $classname', 'body' => var_export(\$p, true), 'backtraceskip' => 1); \$p += " . var_export($p, true) . "; \$this->it_dbi(\$p, \$query); } -- cgit v1.2.3