From: Alex Z Date: Sat, 20 Sep 2008 16:08:08 +0000 (+0000) Subject: Move protection level and protection expiry information for title protection into... X-Git-Tag: 1.31.0-rc.0~45192 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=2ac88101e559acfa6e26ea49d5c955dd5b4f741c;p=lhc%2Fweb%2Fwiklou.git Move protection level and protection expiry information for title protection into log_params. --- diff --git a/includes/Title.php b/includes/Title.php index 2639e9f2cc..e2be4e7556 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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 ); }