Index: trunk/extensions/LiquidThreads/classes/Dispatch.php |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | $viewname = 'ThreadHistoricalRevisionView'; |
75 | 75 | } else if ( $action == 'watch' || $action == 'unwatch' ) { |
76 | 76 | $viewname = 'ThreadWatchView'; |
77 | | - } elseif ( $action == 'delete' ) { |
| 77 | + } elseif ( $action == 'delete' || $action = 'rollback' || $action = 'markpatrolled' ) { |
78 | 78 | return true; |
79 | 79 | } else { |
80 | 80 | $viewname = 'ThreadPermalinkView'; |
Index: trunk/extensions/LiquidThreads/classes/Hooks.php |
— | — | @@ -445,16 +445,13 @@ |
446 | 446 | return true; |
447 | 447 | } |
448 | 448 | |
449 | | - LqtView::postEditUpdates( |
450 | | - 'editExisting', |
451 | | - null, |
452 | | - $article, |
453 | | - $thread->article(), |
454 | | - $thread->article(), |
455 | | - $summary, |
456 | | - $thread, |
457 | | - $text |
458 | | - ); |
| 449 | + LqtView::editMetadataUpdates( |
| 450 | + array( |
| 451 | + 'root' => $article, |
| 452 | + 'thread' => $thread, |
| 453 | + 'summary' => $summary, |
| 454 | + 'text' => $text, |
| 455 | + ) ); |
459 | 456 | |
460 | 457 | return true; |
461 | 458 | } |