Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Manifests: make sure to replace keywords not only on label.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jul 5, 2015
1 parent 8c75bb5 commit bac92da
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,17 @@ protected function getEditableParameters($withLabel = false){
if($pId == "ajxpdriver.") $pId = "access.";
$pId .= $parentPlugin->attributes->getNamedItem("name")->nodeValue;
}
//echo($pId." : ". $node->attributes->getNamedItem("name")->nodeValue . " (".$messId.")<br>");
if(!is_array($actions[$pId])) $actions[$pId] = array();
$actionName = $node->attributes->getNamedItem("name")->nodeValue;
$messId = $node->attributes->getNamedItem("label")->nodeValue;
$attributes = array();
for( $i = 0; $i < $node->attributes->length; $i ++){
$att = $node->attributes->item($i);
$value = $att->nodeValue;
if($att->nodeName == "choices") $value = AJXP_XMLWriter::replaceAjxpXmlKeywords($value);
if(in_array($att->nodeName, array("choices", "description", "group", "label"))) {
$value = AJXP_XMLWriter::replaceAjxpXmlKeywords($value);
}
$attributes[$att->nodeName] = $value;
}
$attributes["label"] = AJXP_XMLWriter::replaceAjxpXmlKeywords($messId);
if($withLabel){
$actions[$pId][$actionName] = array(
"parameter" => $actionName ,
Expand Down Expand Up @@ -2025,7 +2024,7 @@ public function listUsers($root, $child, $hashValue = null, $returnNodes = false
$nodeKey = "/data/".$root."/".ltrim($groupId,"/");
$meta = array(
"icon" => "users-folder.png",
"icon_class" => "icon-folder-open-alt",
"icon_class" => "icon-folder-close",
"ajxp_mime" => "group",
"object_id" => $groupId
);
Expand Down

0 comments on commit bac92da

Please sign in to comment.