From: Roland Häder Date: Wed, 16 Aug 2023 21:30:16 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e6f3f09db1e827910614a7bdc3d416c6390618dc;hp=e03f3176fdb37ad76878e0863aada0a1c640cb47;p=core.git Continued: - ops, wrong variable name --- diff --git a/framework/main/classes/template/class_BaseTemplateEngine.php b/framework/main/classes/template/class_BaseTemplateEngine.php index b49f8d7d..b44f019d 100644 --- a/framework/main/classes/template/class_BaseTemplateEngine.php +++ b/framework/main/classes/template/class_BaseTemplateEngine.php @@ -255,7 +255,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem { */ protected final function isVarStackSet (string $variableGroup) { // Validate parameter - /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-TEMPLATE: variableName=%s - CALLED!', $variableName)); + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-TEMPLATE: variableGroup=%s - CALLED!', $variableGroup)); if (empty($variableGroup)) { // Throw an exception throw new InvalidArgumentException('Parameter "variableGroup" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT); @@ -278,14 +278,14 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem { */ public final function getVarStack (string $variableGroup) { // Validate parameter - /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-TEMPLATE: variableName=%s - CALLED!', $variableName)); + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-TEMPLATE: variableGroup=%s - CALLED!', $variableGroup)); if (empty($variableGroup)) { // Throw an exception throw new InvalidArgumentException('Parameter "variableGroup" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT); } // Return value - /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-TEMPLATE: this->varStack[%s]()=%d - EXIT!', $variableName, count($this->varStack[$variableGroup]))); + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-TEMPLATE: this->varStack[%s]()=%d - EXIT!', $variableGroup, count($this->varStack[$variableGroup]))); return $this->varStack[$variableGroup]; } @@ -299,7 +299,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem { */ protected final function setVarStack (string $variableGroup, array $varStack) { // Validate parameter - /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-TEMPLATE: variableName=%s,varStack()=%d - CALLED!', $variableName, count($varStack))); + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-TEMPLATE: variableGroup=%s,varStack()=%d - CALLED!', $variableGroup, count($varStack))); if (empty($variableGroup)) { // Throw an exception throw new InvalidArgumentException('Parameter "variableGroup" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);