From 19a3223378923679493484987e6719c16b5f5997 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 29 Aug 2006 15:48:06 +0200 Subject: further update to global memory cache arrays - remove initialisation of caches in inc/pageutils.php - add global declaration to init.php to support init.php being included from within a function, e.g. unit testing ;-) - minor change to utf8_substr, remove non-essential brackets added as part of an earlier patch darcs-hash:20060829134806-9b6ab-ab15191344a83be664c412403dc84a24fa2253a2.gz --- inc/utf8.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/utf8.php') diff --git a/inc/utf8.php b/inc/utf8.php index 499952617..aa9594c42 100644 --- a/inc/utf8.php +++ b/inc/utf8.php @@ -137,9 +137,9 @@ function utf8_strlen($string){ function utf8_substr($str, $offset, $length = null) { if(UTF8_MBSTRING){ if( $length === null ){ - return (mb_substr($str, $offset)); + return mb_substr($str, $offset); }else{ - return (mb_substr($str, $offset, $length)); + return mb_substr($str, $offset, $length); } } -- cgit v1.2.3