mirror of
https://github.com/flextype/flextype.git
synced 2025-08-17 18:36:39 +02:00
Themes: New public method getTemplatesBlueprints() - fixes
This commit is contained in:
@@ -159,7 +159,7 @@ class Themes
|
||||
if (count($_blueprints) > 0) {
|
||||
foreach ($_blueprints as $blueprint) {
|
||||
if (!is_bool(Themes::_strrevpos($blueprint, '/blueprints/'))) {
|
||||
$blueprint_name = str_replace('.php', '', substr($blueprint, Themes::_strrevpos($blueprint, '/blueprints/')+strlen('/blueprints/')));
|
||||
$blueprint_name = str_replace('.yaml', '', substr($blueprint, Themes::_strrevpos($blueprint, '/blueprints/')+strlen('/blueprints/')));
|
||||
$blueprints[$blueprint_name] = $blueprint_name;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user