[TEP-COMMIT] CVS: catalog/catalog/includes/boxes manufacturer_info.php,1.11,1.12

Harald Ponce de Leon <[email protected]>
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Update of /cvsroot/tep/catalog/catalog/includes/boxes
In directory sc8-pr-cvs1:/tmp/cvs-serv22047/boxes

Modified Files:
	manufacturer_info.php 
Log Message:
use the new session class
use the super global variables


Index: manufacturer_info.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/boxes/manufacturer_info.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- manufacturer_info.php	9 Jun 2003 22:12:05 -0000	1.11
+++ manufacturer_info.php	17 Nov 2003 20:01:23 -0000	1.12
@@ -10,8 +10,8 @@
   Released under the GNU General Public License
 */
 
-  if (isset($HTTP_GET_VARS['products_id'])) {
-    $manufacturer_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . (int)$languages_id . "'), " . TABLE_PRODUCTS . " p  where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.manufacturers_id = m.manufacturers_id");
+  if (isset($_GET['products_id'])) {
+    $manufacturer_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . (int)$osC_Session->value('languages_id') . "'), " . TABLE_PRODUCTS . " p  where p.products_id = '" . (int)$_GET['products_id'] . "' and p.manufacturers_id = m.manufacturers_id");
     if (tep_db_num_rows($manufacturer_query)) {
       $manufacturer = tep_db_fetch_array($manufacturer_query);
 ?>



-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.