From 9db960b0eefe0283e5a4f77777221ad5c6e762f4 Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Fri, 4 Nov 2005 15:32:26 +0000 Subject: [PATCH] Additional hook --- includes/EditPage.php | 3 +++ languages/Language.php | 1 + 2 files changed, 4 insertions(+) diff --git a/includes/EditPage.php b/includes/EditPage.php index 002f0ed7eb..4cd9884bc8 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -154,6 +154,9 @@ class EditPage { */ function edit() { global $wgOut, $wgUser, $wgRequest, $wgTitle; + $l = strlen ( $wgOut->mBodytext ) ; + wfRunHooks( 'AlternateEdit', array( &$this ) ) ; + if ( $l != strlen ( $wgOut->mBodytext ) ) return ; # Something's changed the text, my work here is done $fname = 'EditPage::edit'; wfProfileIn( $fname ); diff --git a/languages/Language.php b/languages/Language.php index 95ccc27eeb..a79a3d5a03 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -734,6 +734,7 @@ If you are here by mistake, just click your browser's '''back''' button.", Please try again. If it still doesn\'t work, try logging out and logging back in.', 'previewconflict' => 'This preview reflects the text in the upper text editing area as it will appear if you choose to save.', +'importing' => "Importing $1", 'editing' => "Editing $1", 'editingsection' => "Editing $1 (section)", 'editingcomment' => "Editing $1 (comment)", -- 2.20.1