https://bugzilla.wikimedia.org/show_bug.cgi?id=40718
Web browser: ---
Bug #: 40718
Summary: Collection: Call to undefined method
WikiPage::getOldID()
Product: MediaWiki extensions
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Collection
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
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
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l