[+] Project : adding Features detachables in order to improve performance
// clean code git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8328 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -562,10 +562,8 @@ class CategoryCore extends ObjectModel
|
||||
$sql .= ' LIMIT 0, '.(int)($randomNumberProducts);
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql .= ' ORDER BY '.(isset($orderByPrefix) ? $orderByPrefix.'.' : '').'`'.pSQL($orderBy).'` '.pSQL($orderWay).'
|
||||
LIMIT '.(((int)($p) - 1) * (int)($n)).','.(int)($n);
|
||||
}
|
||||
|
||||
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($sql);
|
||||
if ($orderBy == 'orderprice')
|
||||
|
||||
Reference in New Issue
Block a user