Index: trunk/extensions/PureWikiDeletion/PureWikiDeletion.hooks.php |
— | — | @@ -99,9 +99,6 @@ |
100 | 100 | $dbw->delete( 'recentchanges', |
101 | 101 | array( 'rc_this_oldid' => $blankRevId |
102 | 102 | ) ); |
103 | | - if ( $user->getOption( 'watchunblank' ) ) { |
104 | | - $watchthis = true; |
105 | | - } |
106 | 103 | $mTitle->touchLinks(); |
107 | 104 | $mTitle->invalidateCache(); |
108 | 105 | $mTitle->purgeSquid(); |
— | — | @@ -139,7 +136,7 @@ |
140 | 137 | return true; |
141 | 138 | } |
142 | 139 | |
143 | | - public static function PureWikiDeletionEditHook( $editPage ) { |
| 140 | + public static function PureWikiDeletionEditHook( &$editPage ) { |
144 | 141 | global $wgLang; |
145 | 142 | wfLoadExtensionMessages( 'PureWikiDeletion' ); |
146 | 143 | $dbr = wfGetDB( DB_SLAVE ); |
— | — | @@ -173,6 +170,10 @@ |
174 | 171 | , $result->blank_parent_id ) ); |
175 | 172 | $editPage->editFormPageTop .= $html; |
176 | 173 | |
| 174 | + if ($blanking_user->getOption( 'watchunblank' )){ |
| 175 | + $editPage->watchthis = true; |
| 176 | + } |
| 177 | + |
177 | 178 | return true; |
178 | 179 | } |
179 | 180 | |