Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

228
 
290
 
290
 
recently_visited.php
_> 1111 
  1212   class osC_Recently_visited {
  1313 
<> 14 -  var $visits = array();
   14+    var $visits = array();
1515 
  1616 /* Class constructor */
  1717 
<> 18 -   function osC_Recently_visited() {
   18+    function osC_Recently_visited() {
   19+    }
1920 
<> 20 -   }
   21+    function contentModuleInitialize() {
   22+      global $osC_Services, $osC_Product;
2123 
<>  24+      if ($osC_Services->isStarted('recently_visited')) {
   25+        if (isset($osC_Product) && is_a($osC_Product, 'osC_Product')) {
   26+          $_SESSION['recently_visited']->setProduct($osC_Product->getID());
   27+        }
   28+      }
   29+    }
   30+
   31+    function getContentModule() {
   32+      return 'recently_visited.php';
   33+    }
   34+
2235    function setProduct($id) {
  2336      foreach ($this->visits['products'] as $key => $value) {
  2437       if ($this->visits['products'][$key]['products_id'] == $id) {
     
 !
3043      if (sizeof($this->visits['products']) >= MAX_RECENTLY_VISITED_PRODUCTS+3) {
  3144       $keys = array_keys($this->visits['products']);
  3245       unset($this->visits['products'][$keys[0]]);
<> 33 -      $this->debug[] = 'unsetted ' . $keys[0];
   46+      $this->debug[] = 'unsetted ' . $keys[0];
<_ 3447      }
  3548 
  3649      if (SERVICE_RECENTLY_VISITED_ORIGINAL_PAGE == 'True') {