1
0
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:
Awilum
2018-12-10 15:25:41 +03:00
parent 9ffea3bc46
commit 23105bfb62

View File

@@ -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;
}
}