Done. I'd change the protect code in article.php but it also sets page_restrictions to '', so that would take two queries rather than one.
Brion Vibber-3 wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
aaron@svn.wikimedia.org wrote:
$nullRevision->insertOn( $dbw );
$nullRevId = $nullRevision->insertOn( $dbw );
# Update page record
$dbw->update( 'page',
array( /* SET */
'page_touched' => $dbw->timestamp(),
'page_latest' => $nullRevId
), array( /* WHERE */
'page_id' => $title->getArticleId()
), __METHOD__
);
Please use Article::updateRevisionOn() rather than hacking the database directly here.
- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGwG4hwRnhpk1wk44RAiDJAJ0XtkfdgaZywJJfhAVqnpIvCWa0dQCffMMb e9wLN9EEjCzStsBZndlZ2C0= =zVo6 -----END PGP SIGNATURE-----
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l