r88070 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88069‎ | r88070 | r88071 >
Date:13:11, 14 May 2011
Author:btongminh
Status:deferred
Tags:
Comment:
Fix index creation on the drafts table
(bug 19691) Adjust time of draft to time zone user preference
Modified paths:
  • /trunk/extensions/Drafts/Drafts.classes.php (modified) (history)
  • /trunk/extensions/Drafts/Drafts.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/Drafts/Drafts.sql
@@ -32,7 +32,7 @@
3333 draft_minoredit BOOL
3434 ) /*$wgDBTableOptions*/;
3535
36 -CREATE INDEX /*i*/draft_user_savetime ( draft_user, draft_savetime );
 36+CREATE INDEX /*i*/draft_user_savetime ON /*_*/drafts ( draft_user, draft_savetime );
3737 CREATE INDEX /*i*/draft_user_page_savetime ON /*_*/drafts ( draft_user, draft_page, draft_namespace, draft_title, draft_savetime );
3838 CREATE INDEX /*i*/draft_savetime ON /*_*/drafts (draft_savetime);
3939 CREATE INDEX /*i*/draft_page ON /*_*/drafts (draft_page);
Index: trunk/extensions/Drafts/Drafts.classes.php
@@ -276,7 +276,8 @@
277277 $wgOut->addHTML(
278278 Xml::element( 'td',
279279 null,
280 - $wgLang->timeanddate( $draft->getSaveTime() )
 280+ $wgLang->timeanddate( $draft->getSaveTime(),
 281+ true /* Adjust to user time zone*/ )
281282 )
282283 );
283284 $wgOut->addHTML(

Status & tagging log