r66888 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66887‎ | r66888 | r66889 >
Date:18:49, 25 May 2010
Author:tisane
Status:deferred
Tags:
Comment:
=Improved auto-watchlisting
Modified paths:
  • /trunk/extensions/PureWikiDeletion/PureWikiDeletion.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PureWikiDeletion/PureWikiDeletion.hooks.php
@@ -99,9 +99,6 @@
100100 $dbw->delete( 'recentchanges',
101101 array( 'rc_this_oldid' => $blankRevId
102102 ) );
103 - if ( $user->getOption( 'watchunblank' ) ) {
104 - $watchthis = true;
105 - }
106103 $mTitle->touchLinks();
107104 $mTitle->invalidateCache();
108105 $mTitle->purgeSquid();
@@ -139,7 +136,7 @@
140137 return true;
141138 }
142139
143 - public static function PureWikiDeletionEditHook( $editPage ) {
 140+ public static function PureWikiDeletionEditHook( &$editPage ) {
144141 global $wgLang;
145142 wfLoadExtensionMessages( 'PureWikiDeletion' );
146143 $dbr = wfGetDB( DB_SLAVE );
@@ -173,6 +170,10 @@
174171 , $result->blank_parent_id ) );
175172 $editPage->editFormPageTop .= $html;
176173
 174+ if ($blanking_user->getOption( 'watchunblank' )){
 175+ $editPage->watchthis = true;
 176+ }
 177+
177178 return true;
178179 }
179180

Status & tagging log