diff --git a/index.php b/index.php index 3a6f155e3..5e6bc4e4a 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 c32c3bed2..414023d7c 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;