From 65d50f84393901fc7c16e78c05acc7871e52350e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Mon, 22 Oct 2001 09:45:13 +0000 Subject: [PATCH] if weblog is offline, display error message as rss item instead of 404 http error. --- code/Site/xml.hac | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/code/Site/xml.hac b/code/Site/xml.hac index 1deb4e57..4ee14d25 100644 --- a/code/Site/xml.hac +++ b/code/Site/xml.hac @@ -1,25 +1,32 @@ -if (!this.online) - res.redirect("notfound"); - +res.contentType = "text/xml"; + var base = "http://" + getProperty("server") + getProperty("baseURI"); var now = new Date(); var param1 = new Object(); -var size = this.allstories.size(); -var max = req.data.max ? req.data.max : 7; -if (max > size) - max = size; - -var items = ""; -for (var i=0; i size) + max = size; + + var items = ""; + for (var i=0; i