Minor followup to r61609
authorSam Reed <reedy@users.mediawiki.org>
Thu, 28 Jan 2010 07:15:49 +0000 (07:15 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 28 Jan 2010 07:15:49 +0000 (07:15 +0000)
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

index 240a3e1..30f860d 100644 (file)
@@ -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 ) )