From a745b0f68ba165de3bc94e16f29724776224a9dc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 17 Oct 2007 12:34:16 +0000 Subject: - Patch #155870 by quicksketch et al: AHAH-ification of the poll module. --- includes/path.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/path.inc b/includes/path.inc index d9774f93e..aa6ae9d47 100644 --- a/includes/path.inc +++ b/includes/path.inc @@ -234,7 +234,7 @@ function drupal_is_front_page() { */ function drupal_match_path($path, $patterns) { static $regexps; - + if (!isset($regexps[$patterns])) { $regexps[$patterns] = '/^('. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\($|\|)/'), array('|', '.*', '\1'. preg_quote(variable_get('site_frontpage', 'node'), '/') .'\2'), preg_quote($patterns, '/')) .')$/'; } -- cgit v1.2.3