From 2131405664e17034e9ec62da742e44a276807f1b Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 31 Aug 2014 19:42:17 +0000 Subject: [PATCH] fixed display problem with language tags --- lam/templates/3rdParty/pla/lib/xmlTemplates.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/templates/3rdParty/pla/lib/xmlTemplates.php b/lam/templates/3rdParty/pla/lib/xmlTemplates.php index 9b14557d..c3d5aea5 100644 --- a/lam/templates/3rdParty/pla/lib/xmlTemplates.php +++ b/lam/templates/3rdParty/pla/lib/xmlTemplates.php @@ -444,7 +444,7 @@ abstract class xmlTemplate { # If there isnt a schema item for this attribute $attribute = $attribute_factory->newAttribute($name,$value,$server->getIndex(),$source); - $attrid = $this->getAttrID($attribute->getName()); + $attrid = $this->getAttrID($attribute->getName(true, true)); if (is_null($attrid)) array_push($this->attributes,$attribute); @@ -485,7 +485,7 @@ abstract class xmlTemplate { debug_log('Entered (%%)',5,0,__FILE__,__LINE__,__METHOD__,$fargs); foreach ($this->attributes as $attribute) - if (($attribute->getName() == strtolower($name)) || in_array(strtolower($name),$attribute->getAliases())) + if (($attribute->getName(true, true) == strtolower($name)) || in_array(strtolower($name),$attribute->getAliases())) return $attribute; return null;