forked from extern/egroupware
Changed preg_replace with faster strpos
This commit is contained in:
parent
53aee21f17
commit
8cc7c56b50
@ -85,7 +85,7 @@
|
|||||||
while(list($text,$url) = each($file))
|
while(list($text,$url) = each($file))
|
||||||
{
|
{
|
||||||
// If user doesn't have application configuration access, then don't show the configuration links
|
// If user doesn't have application configuration access, then don't show the configuration links
|
||||||
if (!preg_match('/admin\.uiconfig/', $url) || !$GLOBALS['phpgw']->acl->check('site_config_access',1,'admin'))
|
if (strpos($url, 'admin.uiconfig') === False || !$GLOBALS['phpgw']->acl->check('site_config_access',1,'admin'))
|
||||||
{
|
{
|
||||||
section_item($url,lang($text));
|
section_item($url,lang($text));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user