]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/exceptions/template/class_UnexpectedTemplateTypeException.php
Template engine does now insert all variables (work-around)
[shipsimu.git] / inc / classes / exceptions / template / class_UnexpectedTemplateTypeException.php
index 568fa916f1d8900efdd50b9213bbaa36b039e364..bfb096e9714fdc7197fd57b85cb201b4cce1998c 100644 (file)
@@ -25,17 +25,17 @@ class UnexpectedTemplateTypeException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $class          An array holding our informations
+        * @param               $msgArray       An array holding our informations
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (array $msgArray, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Typ <u>%s</u> entspricht nicht dem erwartetem Template-Typ <u>%s</u>.",
-                       $class[0]->__toString(),
+                       $msgArray[0]->__toString(),
                        $this->getLine(),
-                       $class[1],
-                       $class[2]
+                       $msgArray[1],
+                       $msgArray[2]
                );
 
                // Call parent constructor