[TEP-COMMIT] CVS: catalog/catalog/includes/boxes reviews.php,1.39,1.40

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-serv22789/boxes

Modified Files:
	reviews.php 
Log Message:
use the new session class


Index: reviews.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/boxes/reviews.php,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- reviews.php	17 Nov 2003 20:04:22 -0000	1.39
+++ reviews.php	17 Nov 2003 20:04:53 -0000	1.40
@@ -30,7 +30,7 @@
 
   if ($random_product) {
 // display random review box
-    $review_box_query = tep_db_query("select substring(reviews_text, 1, 60) as reviews_text from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . (int)$random_product['reviews_id'] . "' and languages_id = '" . (int)$languages_id . "'");
+    $review_box_query = tep_db_query("select substring(reviews_text, 1, 60) as reviews_text from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . (int)$random_product['reviews_id'] . "' and languages_id = '" . (int)$osC_Session->value('languages_id') . "'");
     $review_box = tep_db_fetch_array($review_box_query);
 
     $review_box = tep_break_string(tep_output_string_protected($review_box['reviews_text']), 15, '-<br>');



-------------------------------------------------------
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.