mirror of
https://github.com/flextype/flextype.git
synced 2025-08-12 16:14:16 +02:00
feat(entries): rethinking Entries API philosophy #436
This commit is contained in:
@@ -262,7 +262,7 @@ class Entries
|
||||
|
||||
// Create entries array from entries list and ignore current requested entry
|
||||
foreach ($entries_list as $current_entry) {
|
||||
if (strpos($current_entry['path'], $bind_id . '/entry' . '.' . $this->flextype->registry->get('flextype.settings.entries.extension')) !== false) {
|
||||
if (strpos($current_entry['path'], $path . '/entry' . '.' . $this->flextype->registry->get('flextype.settings.entries.extension')) !== false) {
|
||||
// ignore ...
|
||||
} else {
|
||||
// We are checking...
|
||||
@@ -276,9 +276,6 @@ class Entries
|
||||
// For each founded entry we should create $entries array.
|
||||
$entry = $this->fetch($uid);
|
||||
|
||||
// Flatten a multi-dimensional entries array with dots.
|
||||
$entry = Arr::dot($entry);
|
||||
|
||||
// Add entry into the entries
|
||||
$entries[$uid] = $entry;
|
||||
}
|
||||
|
Reference in New Issue
Block a user