mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Changed preg_replace with faster strpos
This commit is contained in:
parent
b8fcaa3c08
commit
709fa42041
@ -85,7 +85,7 @@
|
||||
while(list($text,$url) = each($file))
|
||||
{
|
||||
// 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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user