diff --git a/config.php.template b/config.php.template deleted file mode 100644 index c0195ee..0000000 --- a/config.php.template +++ /dev/null @@ -1,54 +0,0 @@ - false, // To enable Twig caching change this to CACHE_DIR -// 'autoescape' => false, // Autoescape Twig vars -// 'debug' => false // Enable Twig debug -// ); - -/* - * CONTENT - */ -// $config['date_format'] = '%D %T'; // Set the PHP date format as described here: http://php.net/manual/en/function.strftime.php -// $config['pages_order_by'] = 'alpha'; // Order pages by "alpha" or "date" -// $config['pages_order'] = 'asc'; // Order pages "asc" or "desc" -// $config['excerpt_length'] = 50; // The pages excerpt length (in words) -// $config['content_dir'] = 'content-sample/'; // Content directory - -/* - * TIMEZONE - */ -// date_default_timezone_set('UTC'); // Timezone may be reqired by your php install - -/* - * CUSTOM - */ -// $config['custom_setting'] = 'Hello'; // Can be accessed by {{ config.custom_setting }} in a theme - -// Keep this line -return $config; \ No newline at end of file diff --git a/index.php b/index.php index cb98acf..b69d4ac 100644 --- a/index.php +++ b/index.php @@ -1,12 +1,15 @@ config = @include_once(ROOT_DIR . 'config.php'); + if (file_exists(CONFIG_DIR . 'config.php')) { + $this->config = require(CONFIG_DIR . 'config.php'); + } else if (file_exists(ROOT_DIR . 'config.php')) { + // deprecated + $this->config = require(ROOT_DIR . 'config.php'); + } $defaults = array( 'site_title' => 'Pico',