Skip to content

Commit

Permalink
Update Plugin.php
Browse files Browse the repository at this point in the history
  • Loading branch information
creecros authored Dec 7, 2018
1 parent c1638e1 commit bb573a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ public function initialize()
);

$scanned_preset_themes = array_diff(scandir('plugins/Customizer/Assets/css/themes'), array('..', '.'));
$scanned_user_themes = array_diff(scandir(DATA_DIR . '/files/customizer/themes'), array('..', '.'));

if (file_exists(DATA_DIR . '/files/customizer/themes')) {
$scanned_user_themes = array_diff(scandir(DATA_DIR . '/files/customizer/themes'), array('..', '.'));
}

foreach ($scanned_preset_themes as $theme) {
$customizer['themes'][rtrim($theme, '.css')] = 'plugins/Customizer/Assets/css/themes/' . $theme;
Expand Down Expand Up @@ -120,7 +123,7 @@ public function getPluginAuthor()

public function getPluginVersion()
{
return '1.8.0';
return '1.8.1';
}

public function getPluginHomepage()
Expand Down

0 comments on commit bb573a7

Please sign in to comment.