Skip to content

Commit

Permalink
Revert "Check old dir with custom php files"
Browse files Browse the repository at this point in the history
This reverts commit 3b7de64.
  • Loading branch information
yurabakhtin committed Nov 12, 2020
1 parent 3b7de64 commit 0f866c2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions components/PhpPageContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,7 @@ public function getAllowedPhpViewFileSelection($path = false)
return [];
}

$dirPath = $this->getPhpViewPathByView();
if (!is_dir($dirPath)) {
return [];
}

$files = FileHelper::findFiles($dirPath, [
$files = FileHelper::findFiles($this->getPhpViewPathByView(), [
'only' => ['*.php'],
'recursive' => false
]);
Expand Down

0 comments on commit 0f866c2

Please sign in to comment.