Index: branches/RC/core/kernel/db/db_tag_processor.php =================================================================== diff -u -r10070 -r10098 --- branches/RC/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 10070) +++ branches/RC/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 10098) @@ -673,9 +673,9 @@ $first_chars = $this->SelectParam($params,'first_chars,cut_first'); if($first_chars) { - $needs_cut = strlen($value) > $first_chars; - $value = extension_loaded('mbstring') ? mb_substr($value,0,$first_chars) : substr($value,0,$first_chars); - if($needs_cut) $value .= ' ...'; + $needs_cut = mb_strlen($value) > $first_chars; + $value = mb_substr($value, 0, $first_chars); + if ($needs_cut) $value .= ' ...'; } if( getArrayValue($params,'nl2br' ) ) $value = nl2br($value); @@ -1431,9 +1431,9 @@ } $cut_first = getArrayValue($params, 'cut_first'); - if ($cut_first && strlen($title) > $cut_first) { + if ($cut_first && mb_strlen($title) > $cut_first) { if (!preg_match('/(.*)<\/a>/',$title)) { - $title = substr($title, 0, $cut_first).' ...'; + $title = mb_substr($title, 0, $cut_first).' ...'; } } @@ -1748,7 +1748,7 @@ if (!$force_module) $force_module = 'core'; } else { - $force_module = strtolower($force_module); + $force_module = mb_strtolower($force_module); } if ($force_module == 'core') { @@ -1897,7 +1897,7 @@ $value = $this->Field($params); $name = $this->InputName($params); - $theme_path = $this->Application->BaseURL().substr($this->Application->GetFrontThemePath(), 1); + $theme_path = $this->Application->BaseURL().mb_substr($this->Application->GetFrontThemePath(), 1); $bgcolor = isset($params['bgcolor']) ? $params['bgcolor'] : $this->Application->GetVar('bgcolor'); if (!$bgcolor) $bgcolor = '#ffffff';