revert the 21393, which was revert of 21389, which was revert of 20291.
[lhc/web/wiklou.git] / includes / FakeTitle.php
index a72f6ea..293bdaf 100644 (file)
@@ -4,7 +4,7 @@
  * Fake title class that triggers an error if any members are called
  */
 class FakeTitle {
-       function error() { wfDebugDieBacktrace( "Attempt to call member function of FakeTitle\n" ); }
+       function error() { throw new MWException( "Attempt to call member function of FakeTitle\n" ); }
 
        // PHP 5.1 method overload
        function __call( $name, $args ) { $this->error(); }
@@ -14,16 +14,15 @@ class FakeTitle {
        function getInterwikiCached() { $this->error(); }
        function isLocal() { $this->error(); }
        function isTrans() { $this->error(); }
-       function touchArray( $titles, $timestamp = '' ) { $this->error(); }
-       function getText() { $this->error(); } 
-       function getPartialURL() { $this->error(); } 
+       function getText() { $this->error(); }
+       function getPartialURL() { $this->error(); }
        function getDBkey() { $this->error(); }
        function getNamespace() { $this->error(); }
        function getNsText() { $this->error(); }
        function getSubjectNsText() { $this->error(); }
-       function getInterwiki() { $this->error(); } 
-       function getFragment() { $this->error(); } 
-       function getDefaultNamespace() { $this->error(); } 
+       function getInterwiki() { $this->error(); }
+       function getFragment() { $this->error(); }
+       function getDefaultNamespace() { $this->error(); }
        function getIndexTitle() { $this->error(); }
        function getPrefixedDBkey() { $this->error(); }
        function getPrefixedText() { $this->error(); }
@@ -36,11 +35,12 @@ class FakeTitle {
        function getInternalURL() { $this->error(); }
        function getEditURL() { $this->error(); }
        function getEscapedText() { $this->error(); }
-       function isExternal() { $this->error(); } 
+       function isExternal() { $this->error(); }
        function isSemiProtected() { $this->error(); }
        function isProtected() { $this->error(); }
        function userIsWatching() { $this->error(); }
        function userCan() { $this->error(); }
+       function userCanCreate() { $this->error(); }
        function userCanEdit() { $this->error(); }
        function userCanMove() { $this->error(); }
        function isMovable() { $this->error(); }
@@ -71,7 +71,6 @@ class FakeTitle {
        function moveOverExistingRedirect() { $this->error(); }
        function moveToNewTitle() { $this->error(); }
        function isValidMoveTarget() { $this->error(); }
-       function createRedirect() { $this->error(); }
        function getParentCategories() { $this->error(); }
        function getParentCategoryTree() { $this->error(); }
        function pageCond() { $this->error(); }