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

Commit

Permalink
Alias /parameters/core to /parameters/core.ajaxplorer
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 26, 2016
1 parent 24fab5d commit 8e42238
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/src/plugins/access.ajxp_conf/src/PluginsManager.php
Expand Up @@ -72,9 +72,12 @@ public function pluginsActions(ServerRequestInterface $requestInterface, Respons

case "get_plugin_manifest" :

$ajxpPlugin = PluginsService::getInstance($ctx)->getPluginById($httpVars["plugin_id"]);
$pluginId = InputFilter::sanitize($httpVars["plugin_id"], InputFilter::SANITIZE_ALPHANUM);
if($pluginId === "core") {
$pluginId = "core.ajaxplorer";
}
$ajxpPlugin = PluginsService::getInstance($ctx)->getPluginById($pluginId);
$buffer = "<admin_data>";
//XMLWriter::header("admin_data");

$fullManifest = $ajxpPlugin->getManifestRawContent("", "xml");
$xPath = new \DOMXPath($fullManifest->ownerDocument);
Expand Down Expand Up @@ -201,6 +204,9 @@ public function pluginsActions(ServerRequestInterface $requestInterface, Respons
$this->parseParameters($ctx, $httpVars, $options, true);
$confStorage = ConfService::getConfStorageImpl();
$pluginId = InputFilter::sanitize($httpVars["plugin_id"], InputFilter::SANITIZE_ALPHANUM);
if($pluginId === "core") {
$pluginId = "core.ajaxplorer";
}
list($pType, $pName) = explode(".", $pluginId);
$existing = $confStorage->loadPluginConfig($pType, $pName);
$this->mergeExistingParameters($options, $existing);
Expand Down

0 comments on commit 8e42238

Please sign in to comment.