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

Commit 6d23456

Browse files
committed
Plugin : load global_param and param configs definitions
1 parent 7cbd5da commit 6d23456

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

core/src/core/classes/class.AJXP_Plugin.php

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -340,29 +340,14 @@ protected function parseSpecificContributions(&$contribNode)
340340
$name = $names->item(0)->value;
341341
$this->actions[$name] = $name;
342342
continue;
343-
/*
344-
$actionData=array();
345-
$actionData["XML"] = $contribNode->ownerDocument->saveXML($actionNode);
346-
$names = $actionXpath->query("@name", $actionNode);
347-
$callbacks = $actionXpath->query("processing/serverCallback/@methodName", $actionNode);
348-
if ($callbacks->length) {
349-
$actionData["callback"] = $callbacks->item(0)->value;
350-
}
351-
$rightContextNodes = $actionXpath->query("rightsContext",$actionNode);
352-
if ($rightContextNodes->length) {
353-
$rightContext = $rightContextNodes->item(0);
354-
$actionData["rights"] = $this->nodeAttrToHash($rightContext);
355-
}
356-
$actionData["node"] = $actionNode;
357-
$this->actions[$name] = $actionData;
358-
*/
359343
}
360344
}
361345
}
346+
362347
/**
363348
* Load the main manifest.xml file of the plugni
364349
* @throws Exception
365-
* @return
350+
* @return void
366351
*/
367352
public function loadManifest()
368353
{
@@ -437,13 +422,11 @@ public function unserialize($string)
437422
$this->$key = $value;
438423
}
439424
if ($this->manifestXML != NULL) {
440-
//$this->manifestDoc = DOMDocument::loadXML(base64_decode($this->manifestXML));
441425
$this->manifestDoc = new DOMDocument(1.0, "UTF-8");
442426
$this->manifestDoc->loadXML(base64_decode(unserialize($this->manifestXML)));
443427
$this->reloadXPath();
444428
unset($this->manifestXML);
445429
}
446-
//var_dump($this);
447430
}
448431

449432
/**
@@ -566,7 +549,7 @@ public function getActiveDependencies($pluginService)
566549
*/
567550
protected function loadConfigsDefinitions()
568551
{
569-
$params = $this->xPath->query("//server_settings/global_param");
552+
$params = $this->xPath->query("//server_settings/global_param|//server_settings/param");
570553
$this->pluginConf = array();
571554
foreach ($params as $xmlNode) {
572555
$paramNode = $this->nodeAttrToHash($xmlNode);

0 commit comments

Comments
 (0)