Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php |
— | — | @@ -397,6 +397,8 @@ |
398 | 398 | } else { |
399 | 399 | $this->tables['recentchanges'] = array('rc_user_text','rc_user'); |
400 | 400 | } |
| 401 | + |
| 402 | + wfRunHooks( 'RenameUserSQL', array( $this ) ); |
401 | 403 | } |
402 | 404 | |
403 | 405 | /** |
Index: trunk/extensions/LiquidThreads/LiquidThreads.php |
— | — | @@ -77,6 +77,9 @@ |
78 | 78 | // Search |
79 | 79 | $wgHooks['ShowSearchHitTitle'][] = 'LqtHooks::customiseSearchResultTitle'; |
80 | 80 | |
| 81 | +// Rename |
| 82 | +$wgHooks['RenameUserSQL'][] = 'LqtHooks::onUserRename'; |
| 83 | + |
81 | 84 | // Special pages |
82 | 85 | $wgSpecialPages['MoveThread'] = 'SpecialMoveThread'; |
83 | 86 | $wgSpecialPages['NewMessages'] = 'SpecialNewMessages'; |
Index: trunk/extensions/LiquidThreads/classes/Hooks.php |
— | — | @@ -240,4 +240,13 @@ |
241 | 241 | |
242 | 242 | return true; |
243 | 243 | } |
| 244 | + |
| 245 | + static function onUserRename( $renameUserSQL ) { |
| 246 | + // Always use the job queue, talk page edits will take forever |
| 247 | + $renameUserSQL->tablesJob['thread'] = |
| 248 | + array( 'thread_author_name', 'thread_author_id', 'thread_modified' ); |
| 249 | + $renameUserSQL->tablesJob['thread_history'] = |
| 250 | + array( 'th_user_text', 'th_user', 'th_timestamp' ); |
| 251 | + return true; |
| 252 | + } |
244 | 253 | } |
Index: trunk/extensions/LiquidThreads/lqt.sql |
— | — | @@ -25,7 +25,8 @@ |
26 | 26 | INDEX thread_article_title (thread_article_namespace, thread_article_title), |
27 | 27 | INDEX thread_modified (thread_modified), |
28 | 28 | INDEX thread_created (thread_created), |
29 | | - INDEX thread_summary_page (thread_summary_page) |
| 29 | + INDEX thread_summary_page (thread_summary_page), |
| 30 | + INDEX (thread_author_id,thread_author_name) |
30 | 31 | ) /*$wgDBTableOptions*/; |
31 | 32 | |
32 | 33 | |