|
@@ -87,7 +87,7 @@ abstract class Smarty_Internal_CompileBase
|
|
|
$_indexed_attr[ $this->shorttag_order[ $key ] ] = $mixed;
|
|
|
} else {
|
|
|
// too many shorthands
|
|
|
- $compiler->trigger_template_error('too many shorthand attributes', null, true);
|
|
|
+ $compiler->trigger_template_error('too many shorthand attributes', __LINE__, true);
|
|
|
}
|
|
|
// named attribute
|
|
|
} else {
|
|
@@ -104,7 +104,7 @@ abstract class Smarty_Internal_CompileBase
|
|
|
$_indexed_attr[ $k ] = $this->optionMap[ $v ];
|
|
|
} else {
|
|
|
$compiler->trigger_template_error("illegal value '" . var_export($v, true) .
|
|
|
- "' for option flag '{$k}'", null, true);
|
|
|
+ "' for option flag '{$k}'", __LINE__, true);
|
|
|
}
|
|
|
}
|
|
|
// must be named attribute
|
|
@@ -117,7 +117,7 @@ abstract class Smarty_Internal_CompileBase
|
|
|
// check if all required attributes present
|
|
|
foreach ($this->required_attributes as $attr) {
|
|
|
if (!isset($_indexed_attr[ $attr ])) {
|
|
|
- $compiler->trigger_template_error("missing \"" . $attr . "\" attribute", null, true);
|
|
|
+ $compiler->trigger_template_error("missing \"" . $attr . "\" attribute", __LINE__, true);
|
|
|
}
|
|
|
}
|
|
|
// check for not allowed attributes
|
|
@@ -129,7 +129,7 @@ abstract class Smarty_Internal_CompileBase
|
|
|
}
|
|
|
foreach ($_indexed_attr as $key => $dummy) {
|
|
|
if (!isset($this->mapCache[ 'all' ][ $key ]) && $key !== 0) {
|
|
|
- $compiler->trigger_template_error("unexpected \"" . $key . "\" attribute", null, true);
|
|
|
+ $compiler->trigger_template_error("unexpected \"" . $key . "\" attribute", __LINE__, true);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -189,7 +189,7 @@ abstract class Smarty_Internal_CompileBase
|
|
|
return;
|
|
|
}
|
|
|
// wrong nesting of tags
|
|
|
- $compiler->trigger_template_error("unexpected closing tag", null, true);
|
|
|
+ $compiler->trigger_template_error("unexpected closing tag", __LINE__, true);
|
|
|
|
|
|
return;
|
|
|
}
|