Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

295
 
296
 
296
 
recently_visited.php
_> 44   osCommerce, Open Source E-Commerce Solutions
  55   http://www.oscommerce.com
  66 
<> 7 -  Copyright (c) 2004 osCommerce
   7+  Copyright (c) 2005 osCommerce
88 
  99   Released under the GNU General Public License
  1010 */
     
 !
1616 /* Class constructor */
  1717 
  1818     function osC_Recently_visited() {
<>  19+      if (isset($_SESSION['osC_RecentlyVisited_data']) === false) {
   20+        $_SESSION['osC_RecentlyVisited_data'] = array();
   21+      }
   22+
   23+      $this->visits =& $_SESSION['osC_RecentlyVisited_data'];
1924     }
  2025 
  2126     function contentModuleInitialize() {
<> 22 -      global $osC_Services, $osC_Product;
   27+      global $osC_Services, $osC_RecentlyVisited, $osC_Product;
2328 
  2429       if ($osC_Services->isStarted('recently_visited')) {
  2530         if (isset($osC_Product) && is_a($osC_Product, 'osC_Product')) {
<> 26 -          $_SESSION['recently_visited']->setProduct($osC_Product->getID());
   31+          $osC_RecentlyVisited->setProduct($osC_Product->getID());
<_ 2732         }
  2833       }
  2934     }