X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fstacker%2Fclass_BaseStacker.php;h=bf4a7667f3856a43f1a0bc2fe02a00b9a167a00d;hp=40f7c0514d8e03867bde9debca0199a95441f7be;hb=9e932cc034299d06e592484de82628fd978df094;hpb=89f25725096fa51850e2d4d0a2ed57906c0b23e0 diff --git a/inc/classes/main/stacker/class_BaseStacker.php b/inc/classes/main/stacker/class_BaseStacker.php index 40f7c051..bf4a7667 100644 --- a/inc/classes/main/stacker/class_BaseStacker.php +++ b/inc/classes/main/stacker/class_BaseStacker.php @@ -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;