r12047 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12046‎ | r12047 | r12048 >
Date:22:06, 10 December 2005
Author:magnus_manske
Status:old
Tags:
Comment:
Hooks! Hoooooks!
Modified paths:
  • /trunk/phase3/includes/SpecialMovepage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialMovepage.php
@@ -198,6 +198,8 @@
199199 $this->showForm( $error );
200200 return;
201201 }
 202+
 203+ wfRunHooks( 'SpecialMovepageAfterMove', array( &$this , &$ot , &$nt ) ) ;
202204
203205 # Move talk page if
204206 # (1) the checkbox says to,
@@ -214,6 +216,7 @@
215217 $error = $ott->moveTo( $ntt, true, $this->reason );
216218 if ( $error === true ) {
217219 $talkmoved = 1;
 220+ wfRunHooks( 'SpecialMovepageAfterMove', array( &$this , &$ott , &$ntt ) ) ;
218221 } else {
219222 $talkmoved = $error;
220223 }

Status & tagging log