From: Sam Reed Date: Thu, 28 Jan 2010 07:15:49 +0000 (+0000) Subject: Minor followup to r61609 X-Git-Tag: 1.31.0-rc.0~38072 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=cb90f19d1927aaf8e9a8fae74dc4d11f1c22d8ea;p=lhc%2Fweb%2Fwiklou.git Minor followup to r61609 If we're checking the key is *, no point reusing it, as we know what it is. Simplfy bug link/reference --- diff --git a/includes/api/ApiFormatYaml_spyc.php b/includes/api/ApiFormatYaml_spyc.php index 240a3e1089..30f860dd4a 100644 --- a/includes/api/ApiFormatYaml_spyc.php +++ b/includes/api/ApiFormatYaml_spyc.php @@ -185,8 +185,8 @@ class Spyc { else $string = $spaces . "-\n"; } else { - if ($key == '*') //https://bugzilla.wikimedia.org/show_bug.cgi?id=21922 - Quote asterix used as keys - $key = "'{$key}'"; + if ($key == '*') //bug 21922 - Quote asterix used as keys + $key = "'*'"; // It's mapped if ( $value !== '' && !is_null( $value ) )