From 709fa42041c6f628df9ccf26cefc8a1fa8f4b075 Mon Sep 17 00:00:00 2001 From: alpeb Date: Sat, 11 Sep 2004 03:26:33 +0000 Subject: [PATCH] Changed preg_replace with faster strpos --- admin/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/index.php b/admin/index.php index ed9b7df1ea..0a6d60d404 100755 --- a/admin/index.php +++ b/admin/index.php @@ -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)); }