Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

300
 
301
 
301
 
recently_visited.php
_> 2626     function contentModuleInitialize() {
  2727       global $osC_Product, $osC_Category, $osC_Search;
  2828 
<> 29 -      if (isset($osC_Product) && is_a($osC_Product, 'osC_Product')) {
  30 -        $this->setProduct($osC_Product->getID());
   29+      if (SERVICE_RECENTLY_VISITED_SHOW_PRODUCTS == 'True') {
   30+        if (isset($osC_Product) && is_a($osC_Product, 'osC_Product')) {
   31+          $this->setProduct($osC_Product->getID());
   32+        }
3133       }
  3234 
  3335       if (SERVICE_RECENTLY_VISITED_SHOW_CATEGORIES == 'True') {
     
 !
5860           }
  5961         }
  6062 
<> 61 -        if (sizeof($this->visits['products']) > (MAX_RECENTLY_VISITED_PRODUCTS * 2)) {
   63+        if (sizeof($this->visits['products']) > (SERVICE_RECENTLY_VISITED_MAX_PRODUCTS * 2)) {
6264           array_pop($this->visits['products']);
  6365         }
  6466       } else {
     
 !
7779           }
  7880         }
  7981 
<> 80 -        if (sizeof($this->visits['categories']) > (MAX_RECENTLY_VISITED_CATEGORIES * 2)) {
   82+        if (sizeof($this->visits['categories']) > (SERVICE_RECENTLY_VISITED_MAX_CATEGORIES * 2)) {
8183           array_pop($this->visits['categories']);
  8284         }
  8385       } else {
     
 !
98100           }
  99101         }
  100102 
<> 101 -        if (sizeof($this->visits['searches']) > (MAX_RECENTLY_VISITED_SEARCHES * 2)) {
   103+        if (sizeof($this->visits['searches']) > (SERVICE_RECENTLY_VISITED_MAX_SEARCHES * 2)) {
102104           array_pop($this->visits['searches']);
  103105         }
  104106       } else {
     
 !
141143           $history[] = array('name' => $osC_Product->getTitle(),
  142144                              'id' => $osC_Product->getID(),
  143145                              'keyword' => $osC_Product->getKeyword(),
<> 144 -                             'price' => (SERVICE_RECENTLY_VISITED_SHOW_PRICE == 'True') ? $osC_Product->getPriceFormated(true) : '',
   146+                             'price' => (SERVICE_RECENTLY_VISITED_SHOW_PRODUCT_PRICES == 'True') ? $osC_Product->getPriceFormated(true) : '',
145147                              'image' => $osC_Product->getImage(),
  146148                              'category_name' =>  $osC_Category->getTitle(),
  147149                              'category_path' => $osC_Category->getPath()
  148150                             );
  149151 
<> 150 -          if ($counter == MAX_RECENTLY_VISITED_PRODUCTS) {
   152+          if ($counter == SERVICE_RECENTLY_VISITED_MAX_PRODUCTS) {
151153             break;
  152154           }
  153155         }
     
 !
187189                               'parent_id' => ($osC_Category->hasParent()) ? $osC_CategoryParent->getID() : ''
  188190                              );
  189191 
<> 190 -          if ($counter == MAX_RECENTLY_VISITED_CATEGORIES) {
   192+          if ($counter == SERVICE_RECENTLY_VISITED_MAX_CATEGORIES) {
191193             break;
  192194           }
  193195         }
     
 !
217219                               'results' => $this->visits['searches'][$k]['results']
  218220                              );
  219221 
<> 220 -          if ($counter == MAX_RECENTLY_VISITED_SEARCHES) {
   222+          if ($counter == SERVICE_RECENTLY_VISITED_MAX_SEARCHES) {
<_ 221223             break;
  222224           }
  223225         }