From 6a442f2adb3b01b927ba62ba1813b1696fa8b37b Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 25 Mar 2018 16:50:32 +0300 Subject: [PATCH] Code cleanup and refactoring #5 --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index b4acda43..4ab0274a 100755 --- a/index.php +++ b/index.php @@ -18,11 +18,11 @@ define('FLEXTYPE_MINIMUM_PHP', '7.1.3'); // Check PHP Version version_compare($ver = PHP_VERSION, $req = FLEXTYPE_MINIMUM_PHP, '<') and exit(sprintf('You are running PHP %s, but Flextype needs at least PHP %s to run.', $ver, $req)); -// Ensure vendor libraries exist and Register The Auto Loader +// Ensure vendor libraries exist !is_file($autoload = __DIR__ . '/vendor/autoload.php') and exit("Please run: composer install"); -// Register the auto-loader. +// Register The Auto Loader $loader = require_once $autoload; -// Initialize Flextype Application +// Init Flextype Flextype::init();