From cc77c8a815a0e77625b552865903c716fbb70ce8 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sun, 25 May 2003 21:20:59 +0000 Subject: [PATCH] Old fix back. git-svn-id: http://svn.automattic.com/wordpress/trunk@98 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- blog.header.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/blog.header.php b/blog.header.php index e5cd32226d..b7125c7fd1 100644 --- a/blog.header.php +++ b/blog.header.php @@ -4,14 +4,18 @@ $use_cache = 1; $use_gzipcompression = 1; /* Including config and functions files */ -require_once('b2config.php'); -$b2blah = dirname(__FILE__).'/'; +/* Including config and functions files */ +$curpath = dirname(__FILE__).'/'; +require_once ($curpath.'/b2config.php'); -require_once ($abspath.$b2inc.'/b2template.functions.php'); -require_once ($abspath.$b2inc.'/b2vars.php'); -require_once ($abspath.$b2inc.'/b2functions.php'); -require_once ($abspath.$b2inc.'/xmlrpc.inc'); -require_once ($abspath.$b2inc.'/xmlrpcs.inc'); +if (($b2inc{0} == '/') || ($b2inc{1} == ':')) { + $curpath='./'; +} +require_once ($curpath.$b2inc.'/b2template.functions.php'); +require_once ($curpath.$b2inc.'/b2vars.php'); +require_once ($curpath.$b2inc.'/b2functions.php'); +require_once ($curpath.$b2inc.'/xmlrpc.inc'); +require_once ($curpath.$b2inc.'/xmlrpcs.inc'); $b2varstoreset = array('m','p','posts','w','c', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby');