From 2ac88101e559acfa6e26ea49d5c955dd5b4f741c Mon Sep 17 00:00:00 2001 From: Alex Z Date: Sat, 20 Sep 2008 16:08:08 +0000 Subject: [PATCH] Move protection level and protection expiry information for title protection into log_params. --- includes/Title.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.20.1