- check if mb string functions available otherwise fallback to normal string functions

This commit is contained in:
Uwe.Tews
2009-04-10 15:52:59 +00:00
parent 1262b7d873
commit ba61f12384
12 changed files with 224 additions and 150 deletions

View File

@@ -55,8 +55,8 @@ abstract class Smarty_Internal_CompileBase
if ($this->optional_attributes != array('_any')) {
$tmp_array = array_merge($this->required_attributes, $this->optional_attributes);
foreach ($args as $key => $dummy) {
if (!in_array($key, $tmp_array) && $key != 0) {
$this->compiler->trigger_template_error("unexspected \"" . $key . "\" attribute");
if (!in_array($key, $tmp_array) && $key !== 0) {
$this->compiler->trigger_template_error("unexspected \"" . $key . "\" attribute");
}
}
}