mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- work agains items + some random fixes .. use own item-table
- do not display serverside events in calendar - include gems in item comparison .. also parse their stats in setup - filters use conditions and are more restrictive - changed DBSimple version so it uses mysqli (mysql is deprecated as of php 5.5) - moved each filter class to matching type; file for baseType and BaseFilter - baseType querys are somewhat modular, trying to avoid ridiculous joins that WILL occur sometimes (especially with items) as far as possible
This commit is contained in:
@@ -104,9 +104,9 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
||||
|
||||
// Items
|
||||
$conditions = array(
|
||||
['allowableClass', 0, '>'],
|
||||
['allowableClass', $_mask, '&'],
|
||||
[['allowableClass', CLASS_MASK_ALL, '&'], CLASS_MASK_ALL, '!'],
|
||||
['requiredClass', 0, '>'],
|
||||
['requiredClass', $_mask, '&'],
|
||||
[['requiredClass', CLASS_MASK_ALL, '&'], CLASS_MASK_ALL, '!'],
|
||||
['itemset', 0], // hmm, do or dont..?
|
||||
0
|
||||
);
|
||||
@@ -114,7 +114,7 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
|
||||
$items = new ItemList($conditions);
|
||||
$items->addGlobalsToJscript($smarty);
|
||||
|
||||
if (!$items->hasDiffFields(['AllowableRace']))
|
||||
if (!$items->hasDiffFields(['requiredRace']))
|
||||
$hidden = "$['side']";
|
||||
|
||||
$pageData['relTabs'][] = array(
|
||||
@@ -334,7 +334,7 @@ $smarty->updatePageVars(array(
|
||||
)
|
||||
));
|
||||
$smarty->assign('community', CommunityContent::getAll(TYPE_CLASS, $_id)); // comments, screenshots, videos
|
||||
$smarty->assign('lang', array_merge(Lang::$main, Lang::$talent));
|
||||
$smarty->assign('lang', Lang::$main);
|
||||
$smarty->assign('lvData', $pageData);
|
||||
|
||||
// load the page
|
||||
|
||||
Reference in New Issue
Block a user