Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

331
 
333
 
333
 
template.php
_> 11 <?php
  22 /*
<> 3 -  $Id: template.php 331 2005-12-06 03:28:58Z hpdl $
   3+  $Id: template.php 333 2005-12-07 03:15:13Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
205205     }
  206206 
  207207 /**
<> 208 - * Return the boxes assigned to the page content
   208+ * Return the box modules assigned to the page
209209  *
<> 210 - * @param string $group The group name of boxes to include that the template has provided
   210+ * @param string $group The group name of box modules to include that the template has provided
211211  * @return array
  212212  */
  213213 
<> 214 -    function getPageBoxes($group) {
  215 -      static $osC_Boxes;
  216 -
  217 -      if (isset($osC_Boxes) === false) {
  218 -        $osC_Boxes = new osC_Boxes('boxes');
   214+    function getBoxModules($group) {
   215+      if (isset($this->osC_Modules_Boxes) === false) {
   216+        $this->osC_Modules_Boxes = new osC_Modules('boxes');
219217       }
  220218 
<> 221 -      return $osC_Boxes->getGroup($group);
   219+      return $this->osC_Modules_Boxes->getGroup($group);
222220     }
  223221 
  224222 /**
<> 225 - * Return the modules assigned to the page content
   223+ * Return the content modules assigned to the page
226224  *
<> 227 - * @param string $group The group name of modules to include that the template has provided
   225+ * @param string $group The group name of content modules to include that the template has provided
228226  * @return array
  229227  */
  230228 
<> 231 -    function getPageModulesContent($group) {
  232 -      static $osC_Boxes;
  233 -
  234 -      if (isset($osC_Boxes) === false) {
  235 -        $osC_Boxes = new osC_Boxes('content');
   229+    function getContentModules($group) {
   230+      if (isset($this->osC_Modules_Content) === false) {
   231+        $this->osC_Modules_Content = new osC_Modules('content');
236232       }
  237233 
<> 238 -      return $osC_Boxes->getGroup($group);
   234+      return $this->osC_Modules_Content->getGroup($group);
<_ 239235     }
  240236 
  241237 /**