Escape $1 in message (was PHP syntax error)
authorThomas Bleher <tbleher@users.mediawiki.org>
Sun, 14 Sep 2008 14:24:54 +0000 (14:24 +0000)
committerThomas Bleher <tbleher@users.mediawiki.org>
Sun, 14 Sep 2008 14:24:54 +0000 (14:24 +0000)
CREDITS
includes/api/ApiBase.php

diff --git a/CREDITS b/CREDITS
index e37ea1b..ee84c62 100644 (file)
--- 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
 
index 7791764..bf90fbe 100644 (file)
@@ -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