https://bugzilla.wikimedia.org/show_bug.cgi?id=69789
Bug ID: 69789
Summary: Title class may return outdated content model
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General/Unknown
Assignee: [email protected]
Reporter: [email protected]
Web browser: ---
Mobile Platform: ---
In eval.php:
> $t1 = Title::newFromText( 'New page' );
> echo $t1->getContentModel();
wikitext
> $page = WikiPage::factory( $t1 );
> $content = ContentHandler::makeContent( 'foo', null, CONTENT_MODEL_TEXT );
> $page->doEditContent( $content, 'summary' );
> $t2 = Title::newFromText( 'New page' );
> echo $t2->getContentModel();
wikitext // should be 'text' instead
This is probably caused by bug 69788 ( $t1->mContentModel, populated in
$t1->getContentModel(), ends up being cached and used for $t2).
--
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