* @return bool Whether it exists
*/
public static function isValidInterwiki( $prefix ) {
+ wfDeprecated( __METHOD__, '1.28' );
return MediaWikiServices::getInstance()->getInterwikiLookup()->isValidInterwiki( $prefix );
}
* @return Interwiki|null|bool
*/
public static function fetch( $prefix ) {
+ wfDeprecated( __METHOD__, '1.28' );
return MediaWikiServices::getInstance()->getInterwikiLookup()->fetch( $prefix );
}
* @since 1.26
*/
public static function invalidateCache( $prefix ) {
+ wfDeprecated( __METHOD__, '1.28' );
MediaWikiServices::getInstance()->getInterwikiLookup()->invalidateCache( $prefix );
}
* @since 1.19
*/
public static function getAllPrefixes( $local = null ) {
+ wfDeprecated( __METHOD__, '1.28' );
return MediaWikiServices::getInstance()->getInterwikiLookup()->getAllPrefixes( $local );
}
/**
* Get the URL for a particular title (or with $1 if no title given)
*
- * @param string $title What text to put for the article name
+ * @param string|null $title What text to put for the article name
* @return string The URL
* @note Prior to 1.19 The getURL with an argument was broken.
* If you if you use this arg in an extension that supports MW earlier