Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
Fixed themes details getting always the current theme details.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkader committed May 29, 2018
1 parent 4b5e02e commit 9381313
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions skeleton/libraries/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,12 @@ public function get_themes($details = false)
* @param string $theme the theme's folder name.
* @return object if found or false.
*/
private function _get_theme_details($folder)
private function _get_theme_details($folder = null)
{
$folder OR $folder = $this->_theme;
// Prepare the path to the "style.css" file and make sure it exists.
$theme_css = $this->themes_path($this->_theme.'/style.css');
$theme_css = $this->themes_path($folder.'/style.css');

if (false === $theme_css)
{
show_error(sprintf(__('Theme missing CSS file: %s.'), $folder));
Expand Down

0 comments on commit 9381313

Please sign in to comment.