Changed preg_replace with faster strpos

This commit is contained in:
alpeb 2004-09-11 03:26:33 +00:00
parent b8fcaa3c08
commit 709fa42041

View File

@ -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));
}