From: Platonides Date: Sun, 29 Aug 2010 19:11:23 +0000 (+0000) Subject: Follow up r32776. X-Git-Tag: 1.31.0-rc.0~35279 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=5f4494499bb0db07ef1752ef0c92f207edc3bcf2;p=lhc%2Fweb%2Fwiklou.git Follow up r32776. $log->addEntry got added an extra indentation, which was wrong. Functionality was right. It goes *outside* the if --- diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index ddbad63a5d..0f25d04bdf 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -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 );