gnucash-htdocs master: Fix superfluous / in rss feeds
Geert Janssens
gjanssens at code.gnucash.org
Sat Dec 2 04:33:10 EST 2017
Updated via https://github.com/Gnucash/gnucash-htdocs/commit/761a376f (commit)
from https://github.com/Gnucash/gnucash-htdocs/commit/4cfbe7cc (commit)
commit 761a376ffa6b98e80ed2343bbeb4b9f9d799fa82
Author: Geert Janssens <geert at kobaltwit.be>
Date: Sat Dec 2 10:33:02 2017 +0100
Fix superfluous / in rss feeds
That was the reason of the invalid css, not relative paths.
diff --git a/atom.php b/atom.php
index 73f678d..7be3af2 100644
--- a/atom.php
+++ b/atom.php
@@ -1,7 +1,7 @@
<?php
// TODO:
// - reasonable permalinks
- $top_dir = "..";
+ $top_dir = ".";
$contentType = "application/atom+xml";
if (isset($_GET["content-type"]))
@@ -12,7 +12,7 @@
header("Content-Type: $contentType; charset=$charset");
$entry_count = 10;
- $newsdir = "news";
+ $newsdir = "$top_dir/news";
/**
* In php5, this is simply: date(DATE_ATOM, strtotime($news_date)).
@@ -60,7 +60,7 @@
<entry>
<id>urn:x-gnucash:news:<?= urlencode($key) ?></id>
<title><?= $title ?></title>
- <link rel="alternate" href="https://www.gnucash.org/news.phtml/#n-<?=generate_anchor($key);?>" />
+ <link rel="alternate" href="https://www.gnucash.org/news.phtml#n-<?=generate_anchor($key);?>" />
<author>
<name>GnuCash Developers</name>
<email>gnucash-devel at gnucash.org</email>
Summary of changes:
atom.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
More information about the gnucash-changes
mailing list