Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Commit

Permalink
fix(Features/Acf): use ucfirst on all names to keep consistent filter…
Browse files Browse the repository at this point in the history
… names (#199)
  • Loading branch information
Doğa Gürdal committed May 26, 2017
1 parent d90fb64 commit ddc7806
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Features/Acf/FieldLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ public static function loadComponentFields($name)
$componentManager = ComponentManager::getInstance();
$filePath = $componentManager->getComponentFilePath($name, 'fields.json');

// make sure naming convention is kept
$name = ucfirst($name);

// add filters
self::addFilters('component', $name, $filePath);
}
Expand All @@ -72,6 +69,9 @@ public static function addFilters($category, $name, $filePath)
return;
}

// make sure naming convention is kept
$name = ucfirst($name);

$fields = json_decode(file_get_contents($filePath), true);

foreach ($fields as $groupKey => $groupValue) {
Expand Down

0 comments on commit ddc7806

Please sign in to comment.