Skip to content

Commit

Permalink
removed FilesystemIterator codes
Browse files Browse the repository at this point in the history
  • Loading branch information
iMokhles committed May 29, 2019
1 parent 265f34b commit d46a0f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Command/MultiAuthPrepare.php
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ public function installPublicFilesIfNeeded($theme_name = 'adminlte2') {

$publicPath = $this->getPublicFolderPath();
$themePublicPath = $publicPath.DIRECTORY_SEPARATOR.$theme_name;
if (!file_exists($themePublicPath) && !(new \FilesystemIterator($themePublicPath))->valid()) {
if (!file_exists($themePublicPath)) {
$githubLink = $this->getGitLinkForFreeTheme($theme_name);
if (!is_null($githubLink) && is_string($githubLink)) {
$zipFileName = basename($githubLink);
Expand Down

0 comments on commit d46a0f5

Please sign in to comment.