error(); $path[] = $cat; // should be only one parameter anyway if (isset($cat)) array_unshift($title, Lang::$title['cat'][$cat]); if (!$smarty->loadCache($cacheKey, $pageData)) { $titles = new TitleList(isset($cat) ? array(['category', (int)$cat]) : []); $pageData = array( 'file' => 'title', 'data' => $titles->getListviewData(), 'params' => [] ); if ($titles->hasDiffFields(['category'])) $pageData['params']['visibleCols'] = "$['category']"; if (!$titles->hasAnySource()) $pageData['params']['hiddenCols'] = "$['source']"; $smarty->saveCache($cacheKey, $pageData); } // menuId 10: Title g_initPath() // tabId 0: Database g_initHeader() $smarty->updatePageVars(array( 'title' => implode(" - ", $title), 'path' => "[".implode(", ", $path)."]", 'tab' => 0 )); $smarty->assign('lang', Lang::$main); $smarty->assign('lvData', $pageData); // load the page $smarty->display('generic-no-filter.tpl'); ?>