Move protection level and protection expiry information for title protection into...
authorAlex Z <mrzman@users.mediawiki.org>
Sat, 20 Sep 2008 16:08:08 +0000 (16:08 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Sat, 20 Sep 2008 16:08:08 +0000 (16:08 +0000)
includes/Title.php

index 2639e9f..e2be4e7 100644 (file)
@@ -1403,7 +1403,8 @@ class Title {
                $log = new LogPage( 'protect' );
 
                if( $create_perm ) {
-                       $log->addEntry( $this->mRestrictions['create'] ? 'modify' : 'protect', $this, trim( $reason . " [create=$create_perm] $expiry_description" ) );
+                       $params = array("[create=$create_perm] $expiry_description",'');
+                       $log->addEntry( $this->mRestrictions['create'] ? 'modify' : 'protect', $this, trim( $reason ), $params );
                } else {
                        $log->addEntry( 'unprotect', $this, $reason );
                }