From 63601400e476c6cf43d985f3e7b9864681695ed4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 18 Jan 2013 16:46:04 +0100 Subject: Update to MediaWiki 1.20.2 this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024 --- includes/WikiMap.php | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) (limited to 'includes/WikiMap.php') diff --git a/includes/WikiMap.php b/includes/WikiMap.php index 6c7f23b5..4a5e2bcf 100644 --- a/includes/WikiMap.php +++ b/includes/WikiMap.php @@ -1,4 +1,24 @@ getUrl( $page ); + return $wiki->getFullUrl( $page ); } return false; @@ -106,6 +126,13 @@ class WikiReference { private $mServer; ///< server URL, may be protocol-relative, e.g. '//www.mediawiki.org' private $mPath; ///< path, '/wiki/$1' + /** + * @param $major string + * @param $minor string + * @param $canonicalServer string + * @param $path string + * @param $server null|string + */ public function __construct( $major, $minor, $canonicalServer, $path, $server = null ) { $this->mMajor = $major; $this->mMinor = $minor; @@ -166,8 +193,17 @@ class WikiReference { return $this->mCanonicalServer . $this->getLocalUrl( $page ); } + /** + * Get a canonical server URL + * @return string + */ + public function getCanonicalServer() { + return $this->mCanonicalServer; + } + /** * Alias for getCanonicalUrl(), for backwards compatibility. + * @param $page string * @return String */ public function getUrl( $page ) { -- cgit v1.2.2