From: Sam Reed Date: Thu, 26 May 2011 20:38:05 +0000 (+0000) Subject: It's not just for < 5.1! X-Git-Tag: 1.31.0-rc.0~29918 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=c67933901ba1526d5709b47f19742200f05af3e4;p=lhc%2Fweb%2Fwiklou.git It's not just for < 5.1! --- diff --git a/includes/FakeTitle.php b/includes/FakeTitle.php index 21b49bde7b..515ff387e1 100644 --- a/includes/FakeTitle.php +++ b/includes/FakeTitle.php @@ -6,10 +6,6 @@ class FakeTitle extends Title { function error() { throw new MWException( "Attempt to call member function of FakeTitle\n" ); } - // PHP 5.1 method overload - function __call( $name, $args ) { $this->error(); } - - // PHP <5.1 compatibility function isLocal() { $this->error(); } function isTrans() { $this->error(); } function getText() { $this->error(); } @@ -33,7 +29,7 @@ class FakeTitle extends Title { function getSubpageText() { $this->error(); } function getSubpageUrlForm() { $this->error(); } function getPrefixedURL() { $this->error(); } - function getFullURL( $query = '', $variant = false ) {$this->error(); } + function getFullURL( $query = '', $variant = false ) { $this->error(); } function getLocalURL( $query = '', $variant = false ) { $this->error(); } function getLinkUrl( $query = array(), $variant = false ) { $this->error(); } function escapeLocalURL( $query = '' ) { $this->error(); }