some cleanups, and a quick undefined variable fix

git-svn-id: https://develop.svn.wordpress.org/trunk@1358 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
michelvaldrighi
2004-05-24 18:24:12 +00:00
parent 78e903528d
commit c0f296df06
4 changed files with 17 additions and 18 deletions

View File

@@ -1,16 +1,16 @@
<?php
if (!isset($feed)) {
<?php
if (!isset($feed) || !$feed) {
$blog = 1;
$doing_rss = 1;
require('wp-blog-header.php');
}
$more = 1;
$charset = get_settings('blog_charset');
if (!$charset) $charset = 'UTF-8';
header('Content-type: text/xml', true);
$more = 1;
?>
<?php echo '<?xml version="1.0" encoding="' . $charset . '"?'.'>'; ?>
<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
<rss version="2.0"