Patches for making new generic array working
[core.git] / inc / classes / main / stacker / class_BaseStacker.php
index 40f7c0514d8e03867bde9debca0199a95441f7be..bf4a7667f3856a43f1a0bc2fe02a00b9a167a00d 100644 (file)
@@ -55,7 +55,7 @@ class BaseStacker extends BaseFrameworkSystem {
                } // END - if
 
                // Initialize the given stack
-               $this->pushValueToGenericArrayElement('stacks', $stackerName, 'max_size', $this->getConfigInstance()->getConfigEntry('stacker_' . $stackerName . '_max_size'));
+               $this->initGenericArray('stacks', $stackerName, 'entries');
        }
 
        /**
@@ -176,7 +176,7 @@ class BaseStacker extends BaseFrameworkSystem {
                }
 
                // Now get the last value
-               $value = $this->getGenericArrayKey('stacks', $stackerName, 'entries', $this->getStackCount($stackerName) - 1);
+               $value = $this->getGenericArrayElement('stacks', $stackerName, 'entries', $this->getStackCount($stackerName) - 1);
 
                // Return it
                return $value;