USe absolute paths in require to avoid problems with wonky include paths. http://mosquito.wordpress.org/view.php?id=1169 Props: roxeteer

git-svn-id: http://svn.automattic.com/wordpress/trunk@2491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-03-29 15:05:19 +00:00
parent ea350cb922
commit 7133584620
1 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
if (empty($doing_rss)) {
$doing_rss = 1;
require('wp-blog-header.php');
require(dirname(__FILE__) . '/wp-blog-header.php');
}
// Remove the pad, if present.
@ -13,23 +13,23 @@ if ($feed == '' || $feed == 'feed') {
}
if ( is_single() || ($withcomments == 1) ) {
require('wp-commentsrss2.php');
require(ABSPATH . 'wp-commentsrss2.php');
} else {
switch ($feed) {
case 'atom':
require('wp-atom.php');
require(ABSPATH . 'wp-atom.php');
break;
case 'rdf':
require('wp-rdf.php');
require(ABSPATH . 'wp-rdf.php');
break;
case 'rss':
require('wp-rss.php');
require(ABSPATH . 'wp-rss.php');
break;
case 'rss2':
require('wp-rss2.php');
require(ABSPATH . 'wp-rss2.php');
break;
case 'comments-rss2':
require('wp-commentsrss2.php');
require(ABSPATH . 'wp-commentsrss2.php');
break;
}
}