Skip to content

Commit

Permalink
Merge pull request #19 from madmadmad/1.1.3.2
Browse files Browse the repository at this point in the history
fix class issue in index.php
  • Loading branch information
Andrew Menich authored Aug 16, 2020
2 parents 58ab21d + 3ea88b3 commit ab95544
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "madhouse/craft-starter",
"description": "A Craft CMS boilerplate.",
"version": "1.1.3.1",
"version": "1.1.3.2",
"authors": [
{
"name": "Madhouse",
Expand Down
5 changes: 3 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
// Load Composer's autoloader
require_once CRAFT_VENDOR_PATH.'/autoload.php';


// Load dotenv?
if (file_exists(CRAFT_BASE_PATH.'/.env')) {
(new Dotenv\Dotenv(CRAFT_BASE_PATH))->load();
if (class_exists('Dotenv\Dotenv') && file_exists(CRAFT_BASE_PATH.'/.env')) {
Dotenv\Dotenv::create(CRAFT_BASE_PATH)->load();
}

// Load and run Craft
Expand Down

0 comments on commit ab95544

Please sign in to comment.