commit 818efa18d8ca91052069ad9eb56eb7957aa855c3
parent 45878500b5d31441f20ea0d5a10f67a51d9c4a8f
Author: Jan Dankert <develop@jandankert.de>
Date: Fri, 15 Nov 2019 23:01:20 +0100
Fix: No need for opening dashes in YAML documents.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/util/YAML.class.php b/modules/util/YAML.class.php
@@ -42,7 +42,7 @@ class YAML
* @param int $wordwrap Pass in 0 for no wordwrap, false for default (40)
* @param bool $no_opening_dashes Do not start YAML file with "---\n"
*/
- public static function dump($array, $indent = false, $wordwrap = false, $no_opening_dashes = false)
+ public static function dump($array, $indent = false, $wordwrap = false, $no_opening_dashes = true)
{
return Spyc::YAMLDump( $array,$indent,$wordwrap,$no_opening_dashes );
}