From: Magnus Manske Date: Fri, 4 Nov 2005 15:32:26 +0000 (+0000) Subject: Additional hook X-Git-Tag: 1.6.0~1220 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=9db960b0eefe0283e5a4f77777221ad5c6e762f4;p=lhc%2Fweb%2Fwiklou.git Additional hook --- 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)",