Merged in paulis/processmaker/HOR-2282-A (pull request #5208)

HOR-2282
This commit is contained in:
Paula Quispe
2016-12-06 21:53:50 +00:00
13 changed files with 236 additions and 12 deletions

View File

@@ -154,6 +154,26 @@ class Designer extends Controller
}
}
//plugin set source path
$sourceCss = array();
$sourceJs = array();
$pluginRegistry = &PMPluginRegistry::getSingleton();
$srcPath = $pluginRegistry->getDesignerSourcePath();
foreach ($srcPath as $key => $value) {
$ext = pathinfo($value->pathFile, PATHINFO_EXTENSION);
if ($ext === "css") {
$sourceCss[] = $value->pathFile;
}
if ($ext === "js") {
$sourceJs[] = $value->pathFile;
}
}
$this->setVar('sourceCss', $sourceCss);
$this->setVar('sourceJs', $sourceJs);
$this->render();
}