From cb90f19d1927aaf8e9a8fae74dc4d11f1c22d8ea Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 28 Jan 2010 07:15:49 +0000 Subject: [PATCH] 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 --- includes/api/ApiFormatYaml_spyc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) ) -- 2.20.1