r41076 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41075‎ | r41076 | r41077 >
Date:16:08, 20 September 2008
Author:mrzman
Status:old
Tags:
Comment:
Move protection level and protection expiry information for title protection into log_params.
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -1403,7 +1403,8 @@
14041404 $log = new LogPage( 'protect' );
14051405
14061406 if( $create_perm ) {
1407 - $log->addEntry( $this->mRestrictions['create'] ? 'modify' : 'protect', $this, trim( $reason . " [create=$create_perm] $expiry_description" ) );
 1407+ $params = array("[create=$create_perm] $expiry_description",'');
 1408+ $log->addEntry( $this->mRestrictions['create'] ? 'modify' : 'protect', $this, trim( $reason ), $params );
14081409 } else {
14091410 $log->addEntry( 'unprotect', $this, $reason );
14101411 }