Bug #1995 » 1995-2.patch
| administrator/components/com_comprofiler/comprofiler.class.php | ||
|---|---|---|
|
*/
|
||
|
function cbutf8_substr( $str, $start, $length = null ) {
|
||
|
if ( function_exists( 'mb_substr' ) ) {
|
||
|
return mb_substr( $str, $start, $length );
|
||
|
return mb_substr( $str, $start, $length, 'UTF-8' );
|
||
|
} else {
|
||
|
$ar = null;
|
||
|
preg_match_all("/./u", $str, $ar);
|
||
- « Previous
- 1
- 2
- 3
- Next »