From 5cd1fc372579bffc14fa3c878d77d61a88582a51 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 7 Jul 2009 15:55:56 +0000 Subject: [PATCH] new hook, that allows extensions/ProofreadPage to read form data server-side rather than using javascript --- includes/EditPage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/EditPage.php b/includes/EditPage.php index 8fbbdb187a..ecd4bbb0fe 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -664,6 +664,9 @@ class EditPage { $this->editintro = $request->getText( 'editintro' ); wfProfileOut( $fname ); + + // Allow extensions to modify form data + wfRunHooks( 'EditPage::importFormData', array( &$this ) ); } /** -- 2.20.1