Last modified: 2012-10-02 16:17:54 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 T42718, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40718 - Collection: Call to undefined method WikiPage::getOldID()
Collection: Call to undefined method WikiPage::getOldID()
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-02 16:14 UTC by Sam Reed (reedy)
Modified: 2012-10-02 16:17 UTC (History)
1 user (show)

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


Attachments

Description Sam Reed (reedy) 2012-10-02 16:14:10 UTC
PHP Fatal error:  Call to undefined method WikiPage::getOldID() in /usr/local/apache/common-local/php-1.21wmf1/extensions/Collection/Collection.body.php on line 817

if ( $oldid < 0 ) {
	$article = new WikiPage( $articleTitle );
} else {
	$article = new Article( $articleTitle, $oldid );
}
if ( !$article->exists() ) {
	return null;
}
$revision = Revision::newFromTitle( $articleTitle, $article->getOldID() );

Article has the getOldID method, WikiPage doesn't..

So if we've had $oldid < 0, we've got a wikipage object, and then we can't pull the old id from that
Comment 1 Sam Reed (reedy) 2012-10-02 16:17:54 UTC
https://gerrit.wikimedia.org/r/26331

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


Navigation
Links