Rewrite to use db_pager.
[fa-stable.git] / includes / ui / db_pager_view.inc
index a30487f90be2711432be7ce846660dff89d32658..ee74aca5fc944c42f27c6ea9a141415da3b15adb 100644 (file)
@@ -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':