Files
aowow/pages/classes.php
Sarjuuk c7c6028adf - allow for search by Id if json-searching
- changed, how achievement chains are saved (more obvious and probably faster)
- misc preparations for setup overhaul
2014-01-05 16:34:46 +01:00

41 lines
862 B
PHP

<?php
if (!defined('AOWOW_REVISION'))
die('illegal access');
$cacheKey = implode('_', [CACHETYPE_PAGE, TYPE_CLASS, -1, -1, User::$localeId]);
if (!$smarty->loadCache($cacheKey, $pageData))
{
$classes = new CharClassList();
$pageData = array(
'listviews' => array(
array(
'file' => 'class',
'data' => $classes->getListviewData(),
'params' => []
)
)
);
$smarty->saveCache($cacheKey, $pageData);
}
// menuId 12: Class g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => Util::ucFirst(Lang::$game['classes']),
'path' => "[0, 12]",
'tab' => 0
));
$smarty->assign('lang', Lang::$main);
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('generic-no-filter.tpl');
?>