From 33930e59dc059267a3177bc4393ef585412c25fa Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 5 Nov 2008 22:27:05 +0000 Subject: [PATCH] Changed 'spec','insert' handlers API. --- includes/ui/db_pager_view.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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': -- 2.30.2