Changed preg_replace with faster strpos

This commit is contained in:
alpeb 2004-09-11 03:27:02 +00:00
parent 53aee21f17
commit 8cc7c56b50

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