error(); if (isset($cat)) { $path[] = $cat; // should be only one parameter anyway array_unshift($title, Lang::$currency['cat'][$cat]); } if (!$smarty->loadCache($cacheKey, $pageData)) { $money = new CurrencyList(isset($cat) ? array(['category', (int)$cat]) : []); $pageData = array( 'file' => 'currency', 'data' => $money->getListviewData(), 'params' => [] ); $money->addGlobalsToJscript($pageData); $smarty->saveCache($cacheKey, $pageData); } $page = array( 'tab' => 0, // for g_initHeader($tab) 'title' => implode(" - ", $title), 'path' => "[".implode(", ", $path)."]" ); $smarty->updatePageVars($page); $smarty->assign('lang', Lang::$main); $smarty->assign('mysql', DB::Aowow()->getStatistics()); $smarty->assign('lvData', $pageData); $smarty->display('generic-no-filter.tpl'); ?>