Skip to content

Commit

Permalink
Merge pull request #978 from joomlatools/feature/977-data
Browse files Browse the repository at this point in the history
Data files that include a dot are not found
  • Loading branch information
johanjanssens committed Sep 28, 2022
2 parents 2f253a0 + 4cdb659 commit f43cc1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/data/registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ public function fromFile($path, $object = true, $content = true)
$this->getLocator()->setBasePath($base_path);

// Locate path
$path = pathinfo($path, PATHINFO_EXTENSION) ? $path : $path.'*';
$format = pathinfo($path, PATHINFO_EXTENSION);
if(!$this->getObject('object.config.factory')->isRegistered($format)) {
$path = $path.'*';
}

if($file = $this->getLocator()->locate($path)) {
$result = $this->__fromFile($file, $content);
Expand Down

0 comments on commit f43cc1e

Please sign in to comment.