Skip to content
Permalink
Browse files

Correct a couple more instances

  • Loading branch information...
danielbachhuber committed Oct 4, 2017
1 parent 05589e1 commit 5fd285e1a12c76e3ad70d175b9816645e111ba2e
Showing with 2 additions and 2 deletions.
  1. +1 −1 php/class-dictator-cli-command.php
  2. +1 −1 php/class-dictator.php
@@ -215,7 +215,7 @@ private function load_state_file( $file ) {
WP_CLI::error( sprintf( "File doesn't exist: %s", $file ) );
}
$yaml = spyc_load( file_get_contents( $file ) );
$yaml = Mustangostang\Spyc::YAMLLoadString( file_get_contents( $file ) );
if ( empty( $yaml ) ) {
WP_CLI::error( sprintf( "Doesn't appear to be a Yaml file: %s", $file ) );
}
@@ -133,7 +133,7 @@ public static function get_state_schema_obj( $name ) {
$schema_file = dirname( dirname( __FILE__ ) ) . '/schemas/' . $schema_file;
}
$schema_yaml = spyc_load( file_get_contents( $schema_file ) );
$schema_yaml = Mustangostang\Spyc::YAMLLoadString( file_get_contents( $schema_file ) );
return new MetaYaml( $schema_yaml );

0 comments on commit 5fd285e

Please sign in to comment.
You can’t perform that action at this time.