From 4e9dacf069b75a1378c81afec20564c7af466e75 Mon Sep 17 00:00:00 2001 From: Thomas Bleher Date: Sun, 14 Sep 2008 14:24:54 +0000 Subject: [PATCH] Escape $1 in message (was PHP syntax error) --- CREDITS | 1 + includes/api/ApiBase.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CREDITS b/CREDITS index e37ea1be89..ee84c623a8 100644 --- a/CREDITS +++ b/CREDITS @@ -35,6 +35,7 @@ following names for their contribution to the product. * Siebrand Mazeland * SQL * Soxred93 +* Thomas Bleher * Tim Starling * Victor Vasiliev diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 779176469f..bf90fbe53e 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -700,7 +700,7 @@ abstract class ApiBase { 'permdenied-undelete' => array('code' => 'permissiondenied', 'info' => "You don't have permission to restore deleted revisions"), 'createonly-exists' => array('code' => 'articleexists', 'info' => "The article you tried to create has been created already"), 'nocreate-missing' => array('code' => 'missingtitle', 'info' => "The article you tried to edit doesn't exist"), - 'nosuchrcid' => array('code' => 'nosuchrcid', 'info' => "There is no change with rcid ``$1''"), + 'nosuchrcid' => array('code' => 'nosuchrcid', 'info' => "There is no change with rcid ``\$1''"), 'cantpurge' => array('code' => 'cantpurge', 'info' => "Only users with the 'purge' right can purge pages via the API"), // ApiEditPage messages -- 2.20.1