From 0f866c280757c8ba9861913a131d3200445b8c0d Mon Sep 17 00:00:00 2001 From: yurabakhtin Date: Thu, 12 Nov 2020 16:14:09 +0300 Subject: [PATCH] Revert "Check old dir with custom php files" This reverts commit 3b7de64c5d956a48a2b4bc6a6b10c40a1cfe363f. --- components/PhpPageContainer.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/PhpPageContainer.php b/components/PhpPageContainer.php index 0832c8b6..834a5f06 100644 --- a/components/PhpPageContainer.php +++ b/components/PhpPageContainer.php @@ -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 ]);