mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
removed relic time measurement code
This commit is contained in:
14
search.php
14
search.php
@@ -815,26 +815,15 @@ if ($searchMask & 0x1000000)
|
||||
$maxResults
|
||||
);
|
||||
|
||||
$t = [];
|
||||
Util::execTime();
|
||||
|
||||
$misc = new SpellList($conditions);
|
||||
|
||||
$t[] = Util::execTime();
|
||||
|
||||
if ($data = $misc->getListviewData())
|
||||
{
|
||||
$t[] = Util::execTime();
|
||||
|
||||
$misc->addGlobalsToJscript($jsGlobals);
|
||||
|
||||
$t[] = Util::execTime();
|
||||
|
||||
while ($misc->iterate())
|
||||
$data[$misc->id]['param1'] = '"'.strToLower($misc->getField('iconString')).'"';
|
||||
|
||||
$t[] = Util::execTime();
|
||||
|
||||
$found['spell'] = array(
|
||||
'type' => TYPE_SPELL,
|
||||
'appendix' => ' (Spell)',
|
||||
@@ -848,8 +837,6 @@ if ($searchMask & 0x1000000)
|
||||
]
|
||||
);
|
||||
|
||||
$t[] = Util::execTime();
|
||||
|
||||
if ($misc->getMatches() > $maxResults)
|
||||
{
|
||||
$found['spell']['params']['note'] = '$'.sprintf(Util::$narrowResultString, 'LANG.lvnote_spellsfound', $misc->getMatches(), $maxResults);
|
||||
@@ -984,7 +971,6 @@ else /* if ($searchMask & SEARCH_TYPE_REGULAR) */
|
||||
$smarty->assign('lvData', $jsGlobals);
|
||||
$smarty->assign('search', $search);
|
||||
$smarty->assign('mysql', DB::Aowow()->getStatistics());
|
||||
$smarty->assign('util', new Util); // just for debugging / optimizing
|
||||
|
||||
$smarty->display('search.tpl');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user