Index: trunk/phase3/includes/Title.php |
— | — | @@ -1403,8 +1403,7 @@ |
1404 | 1404 | $log = new LogPage( 'protect' ); |
1405 | 1405 | |
1406 | 1406 | if( $create_perm ) { |
1407 | | - $params = array("[create=$create_perm] $expiry_description",''); |
1408 | | - $log->addEntry( $this->mRestrictions['create'] ? 'modify' : 'protect', $this, trim( $reason ), $params ); |
| 1407 | + $log->addEntry( $this->mRestrictions['create'] ? 'modify' : 'protect', $this, trim( $reason . " [create=$create_perm] $expiry_description" ) ); |
1409 | 1408 | } else { |
1410 | 1409 | $log->addEntry( 'unprotect', $this, $reason ); |
1411 | 1410 | } |
Index: trunk/phase3/includes/LogPage.php |
— | — | @@ -204,15 +204,10 @@ |
205 | 205 | $params[2] = isset( $params[2] ) ? |
206 | 206 | self::formatBlockFlags( $params[2], is_null( $skin ) ) : ''; |
207 | 207 | } else if ( $type == 'protect' && count($params) == 3 ) { |
208 | | - $details .= "{$params[1]}"; // restrictions and expiries |
| 208 | + $details .= " {$params[1]}"; // restrictions and expiries |
209 | 209 | if( $params[2] ) { |
210 | 210 | $details .= ' ['.wfMsg('protect-summary-cascade').']'; |
211 | 211 | } |
212 | | - # If this is going to be displayed, make it somewhat consistent with page history |
213 | | - # and older log entries where everything is treated as a comment |
214 | | - if (!is_null($skin)) { |
215 | | - $details = $skin->commentBlock($details); |
216 | | - } |
217 | 212 | } |
218 | 213 | $rv = wfMsgReal( $wgLogActions[$key], $params, true, !$skin ) . $details; |
219 | 214 | } |