Additional hook
authorMagnus Manske <magnusmanske@users.mediawiki.org>
Fri, 4 Nov 2005 15:32:26 +0000 (15:32 +0000)
committerMagnus Manske <magnusmanske@users.mediawiki.org>
Fri, 4 Nov 2005 15:32:26 +0000 (15:32 +0000)
includes/EditPage.php
languages/Language.php

index 002f0ed..4cd9884 100644 (file)
@@ -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 );
index 95ccc27..a79a3d5 100644 (file)
@@ -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.</strong>',
 '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)",