Skip to content

Commit

Permalink
Merge pull request #2050 from LuckyCyborg/4.0
Browse files Browse the repository at this point in the history
[4.0] Improve the App\Controllers\BaseController
  • Loading branch information
LuckyCyborg authored Mar 23, 2018
2 parents abb659f + 17d37b1 commit f77cb49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ protected function initialize()
$this->theme = Config::get('app.theme', 'Themes/Bootstrap');
}

if (! Str::contains($theme = $this->theme, '/')) {
if ($this->theme === false) {
return;
}

// A Theme is configured for this Controller.
else if (! Str::contains($theme = $this->theme, '/')) {
$theme = 'Themes/' .$theme;
}

Expand Down
2 changes: 1 addition & 1 deletion app/Platform/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// Define The Application Version
//--------------------------------------------------------------------------

define('VERSION', '4.0.39');
define('VERSION', '4.0.40');

//--------------------------------------------------------------------------
// Set PHP Error Reporting Options
Expand Down

0 comments on commit f77cb49

Please sign in to comment.