Skip to content

Commit

Permalink
Merge pull request #4 from drupal-pattern-lab/patch-4
Browse files Browse the repository at this point in the history
Updating global data to use `yml` or `yaml`
  • Loading branch information
sghoweri authored May 19, 2017
2 parents 0c30ad1 + 884c995 commit a1d3781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PatternLab/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static function gather($options = array()) {
$pathName = $file->getPathname();
$pathNameClean = str_replace($sourceDir."/","",$pathName);

if (!$hidden && (($ext == "json") || ($ext == "yaml"))) {
if (!$hidden && (($ext == "json") || ($ext == "yaml") || ($ext == "yml"))) {

if ($isListItems === false) {

Expand All @@ -137,7 +137,7 @@ public static function gather($options = array()) {
JSON::lastErrorMsg($pathNameClean,$jsonErrorMessage,$data);
}

} else if ($ext == "yaml") {
} else if (($ext == "yaml") || ($ext == "yml")) {

$file = file_get_contents($pathName);

Expand Down

0 comments on commit a1d3781

Please sign in to comment.