*
* 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 ]
);
/**
* @param ImagePage $imagePage
*/
- function __construct( $imagePage ) {
+ public function __construct( $imagePage ) {
parent::__construct( $imagePage->getContext() );
$this->mImagePage = $imagePage;
$this->mTitle = clone $imagePage->getTitle();
/**
* @return Title
*/
- function getTitle() {
+ public function getTitle() {
return $this->mTitle;
}
- function getQueryInfo() {
+ public function getQueryInfo() {
return false;
}
/**
* @return string
*/
- function getIndexField() {
+ public function getIndexField() {
return '';
}
* @param object $row
* @return string
*/
- function formatRow( $row ) {
+ public function formatRow( $row ) {
return '';
}
/**
* @return string
*/
- function getBody() {
+ public function getBody() {
$s = '';
$this->doQuery();
if ( count( $this->mHist ) ) {
return $s;
}
- function doQuery() {
+ public function doQuery() {
if ( $this->mQueryDone ) {
return;
}
* @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 );