Commit 9e40fddb authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Improved a bit information given by ACL debug mode

parent 994de2bd
......@@ -34,7 +34,7 @@ function smarty_block_render($params, $text, &$smarty)
/* Debug output */
if (session::is_set('DEBUGLEVEL') && session::get('DEBUGLEVEL') & DEBUG_ACL ) {
echo '<div style="color:blue;">'.$acl.'</div>';
echo '<div style="color:blue;">'.$acl.(isset($params['aclName']) ? ' ['.$params['aclName'].']' : '').'</div>';
}
/* Read / Write*/
......
......@@ -613,7 +613,7 @@ class Attribute
*/
function renderAcl($display)
{
return '{render acl=$'.$this->getAcl()."ACL}\n$display\n{/render}";
return '{render aclName="'.$this->getAcl().'" acl=$'.$this->getAcl()."ACL}\n$display\n{/render}";
}
/*! \brief Get ACL information about the ACL we need to create
......
Supports Markdown
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