new hook, that allows extensions/ProofreadPage to read form data server-side rather...
authorThomasV <thomasv@users.mediawiki.org>
Tue, 7 Jul 2009 15:55:56 +0000 (15:55 +0000)
committerThomasV <thomasv@users.mediawiki.org>
Tue, 7 Jul 2009 15:55:56 +0000 (15:55 +0000)
includes/EditPage.php

index 8fbbdb1..ecd4bbb 100644 (file)
@@ -664,6 +664,9 @@ class EditPage {
                $this->editintro = $request->getText( 'editintro' );
 
                wfProfileOut( $fname );
+
+               // Allow extensions to modify form data
+               wfRunHooks( 'EditPage::importFormData', array( &$this ) );
        }
 
        /**