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

Xomw: Change href to use proper File: namespace

This commit is contained in:
gnosygnu
2017-02-19 11:11:26 -05:00
parent 704809e5b9
commit 7894c6d6f4
14 changed files with 6443 additions and 113 deletions

View File

@@ -161,7 +161,7 @@ public class XomwFileRepo {
// // Optional settings that have a default
// this.initialCapital = isset(info['initialCapital'])
// ? info['initialCapital']
// : MWNamespace::isCapitalized(NS_FILE);
// : XomwNamespace::isCapitalized(NS_FILE);
// this.url = isset(info['url'])
// ? info['url']
// : false; // a subclass may set the URL (e.g. ForeignAPIRepo)
@@ -622,7 +622,7 @@ public class XomwFileRepo {
*/
public byte[] getNameFromTitle(XomwTitle title) {
// global wgContLang;
// if (this.initialCapital != MWNamespace::isCapitalized(NS_FILE)) {
// if (this.initialCapital != XomwNamespace::isCapitalized(NS_FILE)) {
// name = title.getUserCaseDBKey();
// if (this.initialCapital) {
// name = wgContLang.ucfirst(name);