Last modified: 2014-06-27 05:37:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T69164, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67164 - Fatal error: Call to a member function isMainPage() on a non-object in ApiMobileView.php on line 270
Fatal error: Call to a member function isMainPage() on a non-object in ApiM...
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-26 20:20 UTC by Sam Reed (reedy)
Modified: 2014-06-27 05:37 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2014-06-26 20:20:46 UTC
protected function isMainPage( $title ) {
		if ( $title->isRedirect() && $this->followRedirects ) {
			// Title::newFromRedirect is deprecated since 1.21, so go over WikiPage
			$wp = $this->makeWikiPage( $title );

			return $wp->getRedirectTarget()->isMainPage();
		} else {
			return $title->isMainPage();
		}
	}

$wp->getRedirectTarget() can return null
Comment 1 Bingle 2014-06-26 20:25:20 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/KlFNspve
Comment 2 Florian 2014-06-27 05:37:41 UTC
New PS by MaxSem and Merged:
https://gerrit.wikimedia.org/r/#/c/142436

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links