1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Xomw: Add initial Interwiki classes

This commit is contained in:
gnosygnu
2017-03-02 08:41:02 -05:00
parent c60936f165
commit fa9d2d4040
12 changed files with 1383 additions and 156 deletions

View File

@@ -48,18 +48,19 @@ public class XomwInterwiki {
this.mTrans = trans;
}
// /**
// * Check whether an interwiki prefix exists
// *
// * @deprecated since 1.28, use InterwikiLookup instead
// *
// * @param String prefix Interwiki prefix to use
// * @return boolean Whether it exists
// */
// public static function isValidInterwiki(prefix) {
/**
* Check whether an interwiki prefix exists
*
* [@]deprecated since 1.28, use InterwikiLookup instead
*
* @param String prefix Interwiki prefix to use
* @return boolean Whether it exists
*/
public static boolean isValidInterwiki(XomwMediaWikiServices mws, byte[] prefix) {
return mws.getInterwikiLookup().isValidInterwiki(prefix);
// return MediaWikiServices::getInstance().getInterwikiLookup().isValidInterwiki(prefix);
// }
//
}
// /**
// * Fetch an Interwiki Object
// *