From 824fb50f60ef51b412344bc2b789f68147fa754e Mon Sep 17 00:00:00 2001 From: emc3 Date: Wed, 7 Jan 2004 21:02:26 +0000 Subject: [PATCH] Fixed include path problem for links-update-xml git-svn-id: http://svn.automattic.com/wordpress/trunk@737 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- index.php | 2 ++ wp-includes/links-update-xml.php | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 3a6f155e3a..5e6bc4e4ae 100644 --- a/index.php +++ b/index.php @@ -2,6 +2,8 @@ /* Don't remove these lines. */ $blog = 1; require_once('wp-blog-header.php'); +// Uncomment the next line if you want to track blog updates from weblogs.com +//include_once(ABSPATH.WPINC.'/links-update-xml.php'); ?> diff --git a/wp-includes/links-update-xml.php b/wp-includes/links-update-xml.php index c32c3bed25..414023d7c5 100644 --- a/wp-includes/links-update-xml.php +++ b/wp-includes/links-update-xml.php @@ -2,7 +2,10 @@ // Links weblogs.com grabber // Copyright (C) 2003 Mike Little -- mike@zed1.com -require_once('../wp-config.php'); +// Get the path of our parent directory: +$parentpath = dirname(dirname(__FILE__)); + +require_once($parentpath.'/wp-config.php'); // globals to hold state $updated_timestamp = 0;