From d4d8b5d9c7f0d7f7eec051a59e99c13d4d1cd511 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Tue, 16 Jun 2015 11:43:30 -0400 Subject: [PATCH] Move the configurable item to top of index.php --- index.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 8e64bd60..6bbf992e 100644 --- a/index.php +++ b/index.php @@ -3,6 +3,11 @@ * Here begins everything! */ +/** + * Well, whose list is it? + */ +define('WHOSE', "Tim's"); + /** * Joins paths together. Variadic to take an * arbitrary number of arguments @@ -11,17 +16,11 @@ */ function _dir() { return implode(DIRECTORY_SEPARATOR, func_get_args()); } - define('ROOT_DIR', __DIR__); define('APP_DIR', _dir(ROOT_DIR, 'app')); define('CONF_DIR', _dir(APP_DIR, 'config')); define('BASE_DIR', _dir(APP_DIR, 'base')); -/** - * Well, whose list is it? - */ -define('WHOSE', "Tim's"); - // Load config and global functions $config = require _dir(APP_DIR, '/config/config.php'); require _dir(BASE_DIR, '/functions.php');