Skip to content

Commit

Permalink
[BUGFIX] Avoid extension path resolving if extension not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Sep 11, 2015
1 parent 9fa799f commit cc1cc29
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Classes/View/TemplatePaths.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,16 @@ class TemplatePaths {
protected $partialRootPaths = array();

/**
* @param string|NULL $packageNameOrTypoScriptArray
* @param string|NULL $packageOrPaths
*/
public function __construct($packageNameOrTypoScriptArray = NULL) {
if (TRUE === is_array($packageNameOrTypoScriptArray)) {
$this->fillFromTypoScriptArray($packageNameOrTypoScriptArray);
} elseif (FALSE === empty($packageNameOrTypoScriptArray)) {
$this->fillDefaultsByPackageName($packageNameOrTypoScriptArray);
public function __construct($packageOrPaths = NULL) {
if (TRUE === is_array($packageOrPaths)) {
$this->fillFromTypoScriptArray($packageOrPaths);
} elseif (
FALSE === empty($packageOrPaths)
&& ExtensionManagementUtility::isLoaded(ExtensionNamingUtility::getExtensionKey($packageOrPaths))
) {
$this->fillDefaultsByPackageName($packageOrPaths);
}
}

Expand Down

0 comments on commit cc1cc29

Please sign in to comment.