mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Xomw: Implement Interwiki part of GetTitleCodec
This commit is contained in:
@@ -21,7 +21,7 @@ package gplx.xowa.mediawiki.includes.site; import gplx.*; import gplx.xowa.*; im
|
||||
*
|
||||
* @ingroup Site
|
||||
*/
|
||||
class XomwMediaWikiSite extends XomwSite { private static final String PATH_FILE = "file_path";
|
||||
public class XomwMediaWikiSite extends XomwSite { private static final String PATH_FILE = "file_path";
|
||||
private static final String PATH_PAGE = "page_path";
|
||||
|
||||
/**
|
||||
@@ -187,6 +187,7 @@ class XomwMediaWikiSite extends XomwSite { private static final String PATH_FILE
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
public String getFileUrl() {return getFileUrl(null);}
|
||||
public String getFileUrl(String path) {
|
||||
String filePath = this.getPath(XomwMediaWikiSite.PATH_FILE);
|
||||
|
||||
|
||||
@@ -362,6 +362,7 @@ public class XomwSite {
|
||||
*
|
||||
* @return String|boolean
|
||||
*/
|
||||
@gplx.Virtual public String getPageUrl() {return getPageUrl(null);}
|
||||
@gplx.Virtual public String getPageUrl(String pageName) {
|
||||
String url = this.getLinkPath();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user