"Wikinaut" posted a comment on MediaWiki.r111350.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/111350#c31170
Commit summary for MediaWiki.r111350:
fix for bug30377 : add a new parameter to limit the number of characters when
rendering the channel item <description>
Wikinaut's comment:
GlobalFunctions:
if ( !function_exists( 'mb_strlen' ) ) {
51 /**
52 * @codeCoverageIgnore
53 * @return int
54 */
55 function mb_strlen( $str, $enc = '' ) {
56 return Fallback::mb_strlen( $str, $enc );
57 }
58 }
Fallback:
/**
129 * Fallback implementation of mb_strlen, hardcoded to UTF-8.
130 * @param string $str
131 * @param string $enc optional encoding; ignored
132 * @return int
133 */
134 public static function mb_strlen( $str, $enc = '' ) {
135 $counts = count_chars( $str );
136 $total = 0;
137
138
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview