summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-10-17 12:34:16 +0000
committerDries Buytaert <dries@buytaert.net>2007-10-17 12:34:16 +0000
commita745b0f68ba165de3bc94e16f29724776224a9dc (patch)
treed862d5bbea472a7864c46ea7b891ae5fb0322c82 /includes
parent6f731d920ac2f6564c44043bffac147aeb3d3bed (diff)
downloadbrdo-a745b0f68ba165de3bc94e16f29724776224a9dc.tar.gz
brdo-a745b0f68ba165de3bc94e16f29724776224a9dc.tar.bz2
- Patch #155870 by quicksketch et al: AHAH-ification of the poll module.
Diffstat (limited to 'includes')
-rw-r--r--includes/path.inc2
1 files changed, 1 insertions, 1 deletions
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)/', '/\\\\\*/', '/(^|\|)\\\\<front\\\\>($|\|)/'), array('|', '.*', '\1'. preg_quote(variable_get('site_frontpage', 'node'), '/') .'\2'), preg_quote($patterns, '/')) .')$/';
}