From 184e3cd80c2d5467b1c5b7392f4168f085f65a5d Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sun, 25 May 2003 21:20:59 +0000 Subject: [PATCH] Old fix back. git-svn-id: https://develop.svn.wordpress.org/trunk@98 602fd350-edb4-49c9-b593-d223f7449a82 --- 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');