Hooks! Hoooooks!
authorMagnus Manske <magnusmanske@users.mediawiki.org>
Sat, 10 Dec 2005 22:06:34 +0000 (22:06 +0000)
committerMagnus Manske <magnusmanske@users.mediawiki.org>
Sat, 10 Dec 2005 22:06:34 +0000 (22:06 +0000)
includes/SpecialMovepage.php

index bb8d143..3f65b84 100644 (file)
@@ -198,6 +198,8 @@ class MovePageForm {
                        $this->showForm( $error );
                        return;
                }
+
+               wfRunHooks( 'SpecialMovepageAfterMove', array( &$this , &$ot , &$nt ) ) ;
                
                # Move talk page if
                # (1) the checkbox says to,
@@ -214,6 +216,7 @@ class MovePageForm {
                        $error = $ott->moveTo( $ntt, true, $this->reason );
                        if ( $error === true ) {
                                $talkmoved = 1;
+                               wfRunHooks( 'SpecialMovepageAfterMove', array( &$this , &$ott , &$ntt ) )       ;
                        } else {
                                $talkmoved = $error;
                        }