*
* WARNING: Do not add 'file:' to this or internal file links will be broken.
* Instead, if you want to support file links, add 'file://'. The same applies
- * to any other protocols with the same name as a namespace. See bug #44011 for
+ * to any other protocols with the same name as a namespace. See task T46011 for
* more information.
*
* @see wfParseUrl
// No negative caching per Revision::loadText()
$text = ExternalStore::fetchFromURL( $url, [ 'wiki' => $wiki ] );
- return ExternalStore::decompressRevisionText( $text, $flags );
+ return self::decompressRevisionText( $text, $flags );
},
[ 'pcGroup' => self::TEXT_CACHE_GROUP, 'pcTTL' => $cache::TTL_PROC_LONG ]
);
* @return mixed|string
*/
public function ucfirst( $string ) {
- if ( $string[0] == 'i' ) {
+ if ( substr( $string, 0, 1 ) === 'i' ) {
return 'İ' . substr( $string, 1 );
}
return parent::ucfirst( $string );
* @return string
*/
public function ucfirst( $string ) {
- if ( $string[0] == 'i' ) {
+ if ( substr( $string, 0, 1 ) === 'i' ) {
$variant = $this->getPreferredVariant();
if ( $variant == 'kk-latn' || $variant == 'kk-tr' ) {
return 'İ' . substr( $string, 1 );