From 543900b37a4fc77937866b0b6c3f2600088a7bd1 Mon Sep 17 00:00:00 2001 From: Tom Slominski Date: Mon, 2 Mar 2015 22:40:34 +0000 Subject: [PATCH] Fall back on default config if custom one is not available. --- header.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/header.php b/header.php index f68dd43..8184dd5 100644 --- a/header.php +++ b/header.php @@ -5,6 +5,11 @@ require_once( dirname(__FILE__).'/includes/load-yourls.php' ); // Ask for Infinity Squared settings include( dirname(__FILE__).'/public/config.php' ); + +if( ( @include dirname(__FILE__).'/public/config.php' ) === false) { + include( dirname(__FILE__).'/public/config-sample.php' ); +} + class ISQ { public static $general = array(), $links = array(), $social = array(), $recaptcha = array(); } // Load translations