aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/cache.php')
-rw-r--r--phpBB/includes/cache.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/phpBB/includes/cache.php b/phpBB/includes/cache.php
index b50fab4ca2..1986f021c6 100644
--- a/phpBB/includes/cache.php
+++ b/phpBB/includes/cache.php
@@ -82,7 +82,7 @@ class cache extends acm
$result = $db->sql_query($sql);
$censors = array();
- $unicode = ((version_compare(PHP_VERSION, '5.1.0', '>=') || (version_compare(PHP_VERSION, '5.0.0-dev', '<=') && version_compare(PHP_VERSION, '4.4.0', '>='))) && @preg_match('/\p{L}/u', 'a') !== false) ? true : false;
+ $unicode = pcre_utf8_support();
while ($row = $db->sql_fetchrow($result))
{
@@ -450,5 +450,3 @@ class cache extends acm
return $hook_files;
}
}
-
-?> \ No newline at end of file