Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

368
 
383
 
383
 
products.php
_> 7979     }
  8080 
  8181     function &execute() {
<> 82 -      global $osC_Database;
   82+      global $osC_Database, $osC_Language;
8383 
  8484       $Qlisting = $osC_Database->query('select distinct p.*, pd.*, m.*, if(s.status, s.specials_new_products_price, null) as specials_new_products_price, if(s.status, s.specials_new_products_price, p.products_price) as final_price from :table_products p left join :table_manufacturers m using(manufacturers_id) left join :table_specials s on (p.products_id = s.products_id), :table_products_description pd, :table_categories c, :table_products_to_categories p2c where p.products_status = 1 and p.products_id = pd.products_id and pd.language_id = :language_id and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id');
  8585       $Qlisting->bindTable(':table_products', TABLE_PRODUCTS);
     
 !
8888       $Qlisting->bindTable(':table_specials', TABLE_SPECIALS);
  8989       $Qlisting->bindTable(':table_categories', TABLE_CATEGORIES);
  9090       $Qlisting->bindTable(':table_products_to_categories', TABLE_PRODUCTS_TO_CATEGORIES);
<> 91 -      $Qlisting->bindInt(':language_id', $_SESSION['languages_id']);
   91+      $Qlisting->bindInt(':language_id', $osC_Language->getID());
9292 
  9393       if ($this->hasCategory()) {
  9494         if ($this->isRecursive()) {
     
 !
106106           $Qlisting->appendQuery(')');
  107107         } else {
  108108           $Qlisting->appendQuery('and p2c.products_id = p.products_id and p2c.products_id = pd.products_id and pd.language_id = :language_id and p2c.categories_id = :categories_id');
<> 109 -          $Qlisting->bindInt(':language_id', $_SESSION['languages_id']);
   109+          $Qlisting->bindInt(':language_id', $osC_Language->getID());
<_ 110110           $Qlisting->bindInt(':categories_id', $this->_category);
  111111         }
  112112       }