From 79426eeb749b4923c7a2cb94dc1564035f5a7976 Mon Sep 17 00:00:00 2001 From: Dougal Campbell Date: Wed, 7 Jan 2004 21:02:26 +0000 Subject: [PATCH] Fixed include path problem for links-update-xml git-svn-id: https://develop.svn.wordpress.org/trunk@737 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;