* Unmaintained Oracle support files have been removed.
* Made Linker::userToolLinks() show the contribs link red when the user has zero edits
* Use browser default for printing size, don't force to 11pt
+* (bug 8632) Fix regression in page protection null edit update
== Languages updated ==
if( $protect )
$comment .= " [$updated]";
$nullRevision = Revision::newNullRevision( $dbw, $id, $comment, true );
- $nullRevision->insertOn( $dbw );
+ $nullRevId = $nullRevision->insertOn( $dbw );
# Update restrictions table
foreach( $limit as $action => $restrictions ) {
}
}
- # Blank page_restrictions on page record if they're being used.
- if ($this->mTitle->mOldRestrictions) {
- $dbw->update( 'page', array ( 'page_restrictions' => '' ), array ( 'page_id' => $id ), __METHOD__ );
- }
-
+ # Update page record
+ $dbw->update( 'page',
+ array( /* SET */
+ 'page_touched' => $dbw->timestamp(),
+ 'page_restrictions' => '',
+ 'page_latest' => $nullRevId
+ ), array( /* WHERE */
+ 'page_id' => $id
+ ), 'Article::protect'
+ );
wfRunHooks( 'ArticleProtectComplete', array( &$this, &$wgUser, $limit, $reason ) );
# Update the protection log