Keyword

Optimization model itemlist.php

  • ahmad balavipour
  • ahmad balavipour's Avatar Topic Author
  • Offline
  • New Member
  • هاستینگ
More
12 years 1 week ago #104027 by ahmad balavipour
Optimization model itemlist.php was created by ahmad balavipour
Hi all,

itemlist.php have extra code for gettotal function so i optimize it in line 235 after

$db->query();

as follow:

global $num_rowsahmadzebel;
$num_rowsahmadzebel = $db->getNumRows();
$db->setQuery($query, $limitstart, $limit);
$rows = $db->loadObjectList();
return $rows;
}

function getTotal() {

global $num_rowsahmadzebel;
return $num_rowsahmadzebel;
}

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum