From 360816bde78655bf595cb91967a719dd729f26b5 Mon Sep 17 00:00:00 2001 From: ozhozh Date: Thu, 5 Aug 2010 07:41:10 +0000 Subject: [PATCH] No includes if config.php not found git-svn-id: http://yourls.googlecode.com/svn/trunk@480 12232710-3e20-11de-b438-597f59cd7555 --- includes/load-yourls.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/load-yourls.php b/includes/load-yourls.php index 65811a0..89d7cd0 100644 --- a/includes/load-yourls.php +++ b/includes/load-yourls.php @@ -10,10 +10,7 @@ require_once( dirname(dirname(__FILE__)).'/user/config.php' ); } else { // config.php not found :( - require_once (dirname(__FILE__).'/functions.php'); - require_once (dirname(__FILE__).'/functions-html.php'); - define('YOURLS_SITE', dirname($_SERVER['REQUEST_URI'])); // LOL. Wild guess. - yourls_die('

Cannot find config.php.

Please read the readme.html to learn how to install YOURLS

'); + die('

Cannot find config.php.

Please read the readme.html to learn how to install YOURLS

'); } // Include all functions -- 2.45.0