Revert r40808. No need to make log_params and output uglier due to edit comment limit...
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 15 Sep 2008 18:50:54 +0000 (18:50 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 15 Sep 2008 18:50:54 +0000 (18:50 +0000)
includes/LogPage.php
includes/Title.php

index 312e800..2b821e9 100644 (file)
@@ -204,15 +204,10 @@ class LogPage {
                                                $params[2] = isset( $params[2] ) ? 
                                                        self::formatBlockFlags( $params[2], is_null( $skin ) ) : '';
                                        } else if ( $type == 'protect' && count($params) == 3 ) {
-                                               $details .= "{$params[1]}"; // restrictions and expiries
+                                               $details .= " {$params[1]}"; // restrictions and expiries
                                                if( $params[2] ) {
                                                        $details .= ' ['.wfMsg('protect-summary-cascade').']';
                                                }
-                                               # If this is going to be displayed, make it somewhat consistent with page history
-                                               # and older log entries where everything is treated as a comment
-                                               if (!is_null($skin)) {
-                                                       $details = $skin->commentBlock($details);
-                                               }
                                        }
                                        $rv = wfMsgReal( $wgLogActions[$key], $params, true, !$skin ) . $details;
                                }
index 6599b91..79c875c 100644 (file)
@@ -1403,8 +1403,7 @@ class Title {
                $log = new LogPage( 'protect' );
 
                if( $create_perm ) {
-                       $params = array("[create=$create_perm] $expiry_description",'');
-                       $log->addEntry( $this->mRestrictions['create'] ? 'modify' : 'protect', $this, trim( $reason ), $params );
+                       $log->addEntry( $this->mRestrictions['create'] ? 'modify' : 'protect', $this, trim( $reason . " [create=$create_perm] $expiry_description" ) );
                } else {
                        $log->addEntry( 'unprotect', $this, $reason );
                }