Fix bug where blogDir wouldn't be set properly

This commit is contained in:
uriel 2008-10-14 01:49:35 +02:00
parent 3359120260
commit 852c4c3ace

View File

@ -186,7 +186,7 @@ fn select_handler {
# Rss feeds. TODO: we should check that the request is for a real blog dir
if not if (~ $REQUEST_URI */index.rss) {
uri = `{echo $uri | sed 's/index.rss$//'}
if (~ $blogDirs 0)
if (~ $#blogDirs 0)
blogDirs = $sitedir^$uri
uri=$baseuri$"uri
master_template=feeds/rss20.tpl