* Set proper page title for successful file deletion
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 11 Dec 2007 16:45:28 +0000 (16:45 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 11 Dec 2007 16:45:28 +0000 (16:45 +0000)
RELEASE-NOTES
includes/FileDeleteForm.php

index 6c11ef2..c585c92 100644 (file)
@@ -234,6 +234,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   apostrophes).
 * (bug 12145) Add localized names of kk-variants
 * (bug 12259) Localize the numbers in deleted pages on the sysop view
+* Set proper page title for successful file deletion
 
 == Parser changes in 1.12 ==
 
index 813d72b..24586d4 100644 (file)
@@ -85,6 +85,7 @@ class FileDeleteForm {
                        if( !$status->isGood() )
                                $wgOut->addWikiText( $status->getWikiText( 'filedeleteerror-short', 'filedeleteerror-long' ) );
                        if( $status->ok ) {
+                               $wgOut->setPagetitle( wfMsg( 'actioncomplete' ) );
                                $wgOut->addHtml( $this->prepareMessage( 'filedelete-success' ) );
                                // Return to the main page if we just deleted all versions of the
                                // file, otherwise go back to the description page