From: Janusz Dobrowolski Date: Wed, 5 Nov 2008 22:27:05 +0000 (+0000) Subject: Changed 'spec','insert' handlers API. X-Git-Tag: v2.4.2~19^2~1800 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=33930e59dc059267a3177bc4393ef585412c25fa;p=fa-stable.git Changed 'spec','insert' handlers API. --- diff --git a/includes/ui/db_pager_view.inc b/includes/ui/db_pager_view.inc index a30487f9..ee74aca5 100644 --- a/includes/ui/db_pager_view.inc +++ b/includes/ui/db_pager_view.inc @@ -81,11 +81,10 @@ function display_db_pager(&$pager) { case 'insert': // extra inserted column case 'spec': // special formatting function $fun = $col['fun']; - $param = $coltype=='spec' ? $cell : $row; if (method_exists($pager, $fun)) { - $cell = $pager->$fun($param); + $cell = $pager->$fun($row, $cell); } elseif (function_exists($fun)) { - $cell = $fun($param); + $cell = $fun($row, $cell); } else $cell = ''; // case 'text':