Skip to content

Commit

Permalink
Add missing installed themes status
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoyigi committed Apr 14, 2020
1 parent 08ce664 commit d767c2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/system/models/Themes_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ public static function syncAll()
// Disable themes not found in file system
// This allows admin to remove an enabled theme from admin UI after deleting files
self::whereNotIn('code', $installedThemes)->update(['status' => FALSE]);
self::whereIn('code', $installedThemes)->update(['status' => TRUE]);

self::updateInstalledThemes();
}
Expand Down

0 comments on commit d767c2f

Please sign in to comment.