Commit e3c429bc authored by Franco Fichtner's avatar Franco Fichtner

src: style and whitespaces

parent 705080ca
......@@ -37,7 +37,7 @@
<Settings url="/system_usermanager_settings.php"/>
<Servers url="/system_authservers.php"/>
</UserManager>
</System>
<Interfaces order="2" cssClass="glyphicon glyphicon-wrench">
......
......@@ -92,19 +92,20 @@ class ACL
// gather user / group data from config.xml
$config = Config::getInstance()->object() ;
foreach ($config->system->children() as $key => $node) {
if ($key == "user") {
if ($key == 'user') {
$this->legacyUsers[$node->name->__toString()] = array() ;
$this->legacyUsers[$node->name->__toString()]["uid"] = $node->uid->__toString();
$this->legacyUsers[$node->name->__toString()]["groups"] = array();
$this->legacyUsers[$node->name->__toString()]["priv"] = array();
$this->legacyUsers[$node->name->__toString()]['uid'] = $node->uid->__toString();
$this->legacyUsers[$node->name->__toString()]['groups'] = array();
$this->legacyUsers[$node->name->__toString()]['priv'] = array();
foreach ($node->priv as $priv) {
if (substr($priv, 0, 5) == "page-") {
if (substr($priv, 0, 5) == 'page-') {
if (array_key_exists($priv->__toString(), $legacyPageMap)) {
$this->legacyUsers[$node->name->__toString()]["priv"][] = $legacyPageMap[$priv->__toString()] ;
$this->legacyUsers[$node->name->__toString()]['priv'][] =
$legacyPageMap[$priv->__toString()];
}
}
}
} elseif ($key == "group") {
} elseif ($key == 'group') {
$groupmap[$node->name->__toString()] = $node ;
}
}
......
......@@ -1662,4 +1662,4 @@
"xmlrpc.php*"
]
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment