X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_del%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=blobdiff_plain;f=includes%2FTitle.php;h=8e0608705a1301267fefc54d6a7f9a44626358ce;hb=bfc3710111f937ffa10b79a81850190cfdd273e9;hp=24811788f22f41504efdc06aee62d4fe9bfb3eae;hpb=ffcbf9b7f1e9505e963632d4d44aa35567d2eba4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Title.php b/includes/Title.php index 24811788f2..8e0608705a 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -74,6 +74,9 @@ class Title { /** @var string Interwiki prefix */ public $mInterwiki = ''; + /** @var bool Was this Title created from a string with a local interwiki prefix? */ + private $mLocalInterwiki = false; + /** @var string Title fragment (i.e. the bit after the #) */ public $mFragment = ''; @@ -823,6 +826,15 @@ class Title { return $this->mInterwiki; } + /** + * Was this a local interwiki link? + * + * @return bool + */ + public function wasLocalInterwiki() { + return $this->mLocalInterwiki; + } + /** * Determine whether the object refers to a page within * this project and is transcludable. @@ -3291,6 +3303,7 @@ class Title { # Fill fields $this->setFragment( '#' . $parts['fragment'] ); $this->mInterwiki = $parts['interwiki']; + $this->mLocalInterwiki = $parts['local_interwiki']; $this->mNamespace = $parts['namespace']; $this->mUserCaseDBKey = $parts['user_case_dbkey'];