X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fstacker%2Fclass_BaseStacker.php;h=0251661dfa753f476ad339b36a65861b95a3e4fd;hp=b029e4e2ca920ed0fe2b06fb01be3157e8b0c8d5;hb=4f56649779457a04221f8ec97f81465156a7685b;hpb=5c075f8aae4264b339351e89e83d01065263c926 diff --git a/inc/classes/main/stacker/class_BaseStacker.php b/inc/classes/main/stacker/class_BaseStacker.php index b029e4e2..0251661d 100644 --- a/inc/classes/main/stacker/class_BaseStacker.php +++ b/inc/classes/main/stacker/class_BaseStacker.php @@ -48,12 +48,13 @@ class BaseStacker extends BaseFrameworkSystem { * Initializes given stacker * * @param $stackerName Name of the stack + * @param $forceReInit Force re-initialization * @return void * @throws AlreadyInitializedStackerException If the stack is already initialized */ - public final function initStacker ($stackerName) { + public final function initStacker ($stackerName, $forceReInit = false) { // Is the stack already initialized? - if ($this->isStackInitialized($stackerName)) { + if (($forceReInit === true) && ($this->isStackInitialized($stackerName))) { // Then throw the exception throw new AlreadyInitializedStackerException(array($this, $stackerName), self::EXCEPTION_STACKER_ALREADY_INITIALIZED); } // END - if