diff --git a/search.php b/search.php index 8bf1af73..232af142 100644 --- a/search.php +++ b/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'); }