]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/exceptions/template/class_InvalidTemplateVariableNameException.php
Registration stub added, naming convention applied, support for PHP code (keep it...
[shipsimu.git] / inc / classes / exceptions / template / class_InvalidTemplateVariableNameException.php
index c5cbce45c4dc183cb1997d4a6bd0c4c9cd5acbe1..3f92b37ec8bfac5d0517a63acb2289239f3e6d4d 100644 (file)
@@ -25,18 +25,18 @@ class InvalidTemplateVariableNameException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $class          An array holding our informations
+        * @param               $classArray             An array holding our informations
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (array $classArray, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Die im Template <u>%s</u> gefundene Variable <u>%s</u> ist nicht g&uuml;ltig! G&uuml;ltige Variablennamen sind nur <u>%s</strong>.",
-                       $class[0]->__toString(),
+               $message = sprintf("[%s:%d] The template <u>%s</u> contains an invalid variable called <u>%s</u>. Valid variable names are only <u>%s</u>.",
+                       $classArray[0]->__toString(),
                        $this->getLine(),
-                       basename($class[1]),
-                       $class[2],
-                       $class[3]->readConfig("tpl_valid_var")
+                       basename($classArray[1]),
+                       $classArray[2],
+                       $classArray[3]->readConfig("tpl_valid_var")
                );
 
                // Call parent constructor