From 0057af0da821dfc2c42c6e7f4c9e1ebc2a5a73d6 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 5 May 2004 06:44:59 +0000 Subject: [PATCH] Don't need slash at the beginning. git-svn-id: https://develop.svn.wordpress.org/trunk@1225 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/links-update-xml.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/links-update-xml.php b/wp-includes/links-update-xml.php index 402fe449be..cd7268bf89 100644 --- a/wp-includes/links-update-xml.php +++ b/wp-includes/links-update-xml.php @@ -51,7 +51,7 @@ function update_links() { function get_weblogs_updatedfile() { global $ignore_weblogs_cache; $update = false; - $file = ABSPATH . '/wp-content/links-update-cache.xml'; + $file = ABSPATH . 'wp-content/links-update-cache.xml'; if ($ignore_weblogs_cache) { $update = true; } else { @@ -76,7 +76,7 @@ function get_weblogs_updatedfile() { $contents = preg_replace("/'/",''',$contents); $contents = preg_replace('|[^[:space:][:punct:][:alpha:][:digit:]]|','',$contents); - $cachefp = fopen(ABSPATH . '/wp-content/links-update-cache.xml', "w"); + $cachefp = fopen(ABSPATH . 'wp-content/links-update-cache.xml', "w"); fwrite($cachefp, $contents); fclose($cachefp); } else { @@ -147,7 +147,7 @@ if (get_weblogs_updatedfile()) { xml_set_element_handler($xml_parser, "startElement", "endElement"); // Open the XML file for reading - $fp = fopen(ABSPATH . '/wp-content/links-update-cache.xml', "r") + $fp = fopen(ABSPATH . 'wp-content/links-update-cache.xml', "r") or die("Error reading XML data."); // Read the XML file 16KB at a time