// Remove bad _SQL_USE_SLAVE_ uses + normalize Db->executeS(), Db->execute() and Db->numRows() names

This commit is contained in:
rMalie
2011-10-10 12:18:56 +00:00
parent 149c814a45
commit 9510337b1d
280 changed files with 1971 additions and 1966 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ class ContactControllerCore extends FrontController
$id_customer_thread = CustomerThread::getIdCustomerThreadByEmailAndIdOrder($from, (int)Tools::getValue('id_order'))
)))
{
$fields = Db::getInstance()->ExecuteS('
$fields = Db::getInstance()->executeS('
SELECT cm.id_customer_thread, cm.id_contact, cm.id_customer, cm.id_order, cm.id_product, cm.email
FROM '._DB_PREFIX_.'customer_thread cm
WHERE email = \''.pSQL($from).'\' AND cm.id_shop = '.(int)$this->context->shop->getID(true).' AND ('.
@@ -233,7 +233,7 @@ class ContactControllerCore extends FrontController
$products = array();
$orders = array();
$getOrders = Db::getInstance()->ExecuteS('
$getOrders = Db::getInstance()->executeS('
SELECT id_order
FROM '._DB_PREFIX_.'orders
WHERE id_customer = '.(int)$this->context->customer->id.' ORDER BY date_add');
+3 -3
View File
@@ -89,7 +89,7 @@ class StoresControllerCore extends FrontController
*/
protected function assignStoresSimplified()
{
$stores = Db::getInstance()->ExecuteS('
$stores = Db::getInstance()->executeS('
SELECT s.*, cl.name country, st.iso_code state
FROM '._DB_PREFIX_.'store s
'.$this->context->shop->sqlAsso('shop', 's').'
@@ -115,7 +115,7 @@ class StoresControllerCore extends FrontController
if (Tools::getValue('all') == 1)
{
$stores = Db::getInstance()->ExecuteS('
$stores = Db::getInstance()->executeS('
SELECT s.*, cl.name country, st.iso_code state
FROM '._DB_PREFIX_.'store s
'.$this->context->shop->sqlAsso('shop', 's').'
@@ -128,7 +128,7 @@ class StoresControllerCore extends FrontController
$distance = (int)(Tools::getValue('radius', 100));
$multiplicator = ($distanceUnit == 'km' ? 6371 : 3959);
$stores = Db::getInstance()->ExecuteS('
$stores = Db::getInstance()->executeS('
SELECT s.*, cl.name country, st.iso_code state,
('.(int)($multiplicator).'
* acos(