From f755c6c68241ad983bea43f27e054be2ad5af46d Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 28 Feb 2006 05:19:50 +0000 Subject: [PATCH] Class to help with debugging inappropriate references to $wgTitle. --- includes/FakeTitle.php | 87 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 includes/FakeTitle.php diff --git a/includes/FakeTitle.php b/includes/FakeTitle.php new file mode 100644 index 0000000000..bedf5ba92a --- /dev/null +++ b/includes/FakeTitle.php @@ -0,0 +1,87 @@ +error(); } + + // PHP <5.1 compatibility + function getInterwikiLink() { $this->error(); } + 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 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 getIndexTitle() { $this->error(); } + function getPrefixedDBkey() { $this->error(); } + function getPrefixedText() { $this->error(); } + function getFullText() { $this->error(); } + function getPrefixedURL() { $this->error(); } + function getFullURL() {$this->error(); } + function getLocalURL() { $this->error(); } + function escapeLocalURL() { $this->error(); } + function escapeFullURL() { $this->error(); } + function getInternalURL() { $this->error(); } + function getEditURL() { $this->error(); } + function getEscapedText() { $this->error(); } + function isExternal() { $this->error(); } + function isSemiProtected() { $this->error(); } + function isProtected() { $this->error(); } + function userIsWatching() { $this->error(); } + function userCan() { $this->error(); } + function userCanEdit() { $this->error(); } + function userCanMove() { $this->error(); } + function isMovable() { $this->error(); } + function userCanRead() { $this->error(); } + function isTalkPage() { $this->error(); } + function isCssJsSubpage() { $this->error(); } + function isValidCssJsSubpage() { $this->error(); } + function getSkinFromCssJsSubpage() { $this->error(); } + function isCssSubpage() { $this->error(); } + function isJsSubpage() { $this->error(); } + function userCanEditCssJsSubpage() { $this->error(); } + function loadRestrictions( $res ) { $this->error(); } + function getRestrictions($action) { $this->error(); } + function isDeleted() { $this->error(); } + function getArticleID( $flags = 0 ) { $this->error(); } + function getLatestRevID() { $this->error(); } + function resetArticleID( $newid ) { $this->error(); } + function invalidateCache() { $this->error(); } + function getTalkPage() { $this->error(); } + function getSubjectPage() { $this->error(); } + function getLinksTo() { $this->error(); } + function getTemplateLinksTo() { $this->error(); } + function getBrokenLinksFrom() { $this->error(); } + function getSquidURLs() { $this->error(); } + function moveNoAuth() { $this->error(); } + function isValidMoveOperation() { $this->error(); } + function moveTo() { $this->error(); } + 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(); } + function getPreviousRevisionID() { $this->error(); } + function getNextRevisionID() { $this->error(); } + function equals() { $this->error(); } + function exists() { $this->error(); } + function isAlwaysKnown() { $this->error(); } + function touchLinks() { $this->error(); } + function trackbackURL() { $this->error(); } + function trackbackRDF() { $this->error(); } +} + -- 2.20.1