Index: trunk/extensions/LiquidThreads/classes/Thread.php |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | NewMessages::writeMessageStateForUpdatedThread( $thread, $change_type, $wgUser ); |
114 | 114 | |
115 | 115 | if ( $wgUser->getOption( 'lqt-watch-threads', false ) ) { |
116 | | - Action::factory( 'watch', $thread->topmostThread()->root() )->execute(); |
| 116 | + WatchAction:doWatch( $thread->topmostThread()->root()->getTitle(), $wgUser ); |
117 | 117 | } |
118 | 118 | |
119 | 119 | return $thread; |
Index: trunk/extensions/MultilingualLiquidThreads/LiquidThreads/classes/Thread.php |
— | — | @@ -113,7 +113,7 @@ |
114 | 114 | NewMessages::writeMessageStateForUpdatedThread( $thread, $change_type, $wgUser ); |
115 | 115 | |
116 | 116 | if ( $wgUser->getOption( 'lqt-watch-threads', false ) ) { |
117 | | - Action::factory( 'watch', $thread->topmostThread()->root() )->execute(); |
| 117 | + WatchAction:doWatch( $thread->topmostThread()->root()->getTitle(), $wgUser ); |
118 | 118 | } |
119 | 119 | |
120 | 120 | return $thread; |
— | — | @@ -1095,7 +1095,7 @@ |
1096 | 1096 | } |
1097 | 1097 | |
1098 | 1098 | // The 'root' is the page in the Thread namespace corresponding to this thread. |
1099 | | - function root( ) { |
| 1099 | + function root() { |
1100 | 1100 | if ( !$this->rootId ) return null; |
1101 | 1101 | if ( !$this->root ) { |
1102 | 1102 | if ( isset( self::$articleCacheById[$this->rootId] ) ) { |
Index: trunk/extensions/MetavidWiki/includes/articlepages/MV_DataPage.php |
— | — | @@ -63,9 +63,9 @@ |
64 | 64 | if ( $confirm ) { |
65 | 65 | $this->doDelete( $reason ); |
66 | 66 | if ( $wgRequest->getCheck( 'wpWatch' ) ) { |
67 | | - Action::factory( 'watch', $this )->execute(); |
| 67 | + WatchAction:doWatch( $this->mTitle, $wgUser ); |
68 | 68 | } elseif ( $this->mTitle->userIsWatching() ) { |
69 | | - Action::factory( 'watch', $this )->execute(); |
| 69 | + WatchAction:doUnwatch( $this->mTitle, $wgUser ); |
70 | 70 | } |
71 | 71 | return; |
72 | 72 | } |
Index: trunk/extensions/ReplaceText/ReplaceTextJob.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | $create_redirect = $this->params['create_redirect']; |
44 | 44 | $this->title->moveTo( $new_title, true, $reason, $create_redirect ); |
45 | 45 | if ( $this->params['watch_page'] ) { |
46 | | - Action::factory( 'watch', new Article( $new_title, 0 ) )->execute(); |
| 46 | + WatchAction::doWatch( $new_title, $wgUser ); |
47 | 47 | } |
48 | 48 | $wgUser = $actual_user; |
49 | 49 | } else { |