Follow up r32776.
authorPlatonides <platonides@users.mediawiki.org>
Sun, 29 Aug 2010 19:11:23 +0000 (19:11 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 29 Aug 2010 19:11:23 +0000 (19:11 +0000)
$log->addEntry got added an extra indentation, which was wrong.
Functionality was right. It goes *outside* the if

includes/FileDeleteForm.php

index ddbad63..0f25d04 100644 (file)
@@ -110,9 +110,10 @@ class FileDeleteForm {
                                // Need to do a log item
                                $log = new LogPage( 'delete' );
                                $logComment = wfMsgForContent( 'deletedrevision', $oldimage );
-                               if( trim( $reason ) != '' )
+                               if( trim( $reason ) != '' ) {
                                        $logComment .= wfMsgForContent( 'colon-separator' ) . $reason;
-                                       $log->addEntry( 'delete', $title, $logComment );
+                               }
+                               $log->addEntry( 'delete', $title, $logComment );
                        }
                } else {
                        $id = $title->getArticleID( GAID_FOR_UPDATE );