https://bugzilla.wikimedia.org/show_bug.cgi?id=47433
Web browser: ---
Bug ID: 47433
Summary: Regression with ContentModel checking
Product: MediaWiki
Version: 1.21-git
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Page editing
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
Following code raise error because of ContentModel checking. This checking
attempt to get page id. Where I disable checking manually in MW code, 1.21
perfectly processed it:
#$data is some array, $user is User
$row = array(
'page' => 0,
'user' => $user->getID(),
'user_text' => $user->getName(),
'minor_edit' => 1,
'timestamp' => $data['timestamp'],
'comment' => $data['comment'],
'text' => $data['text']
);
$revision = new Revision( $row );
$Id = $rev->insertOn( $dbw );
(After this code I use $wikipage->insertOn() or $wikipage->updateRevisionOn()
and revision tables updates, after this new revision has been inserted without
errors and can be viewed on site).
Or currently we have another functions to insert custom revision in database ?
--
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