shithub: werc

Download patch

ref: 18f3f886cf6bd3301360edc8f1e007dcc6063522
parent: 2533d52e0cf8ceae3613f7aa16b7b9bd82ec01b6
author: uriel <uriel@engel.se.cat-v.org>
date: Fri Jun 15 10:15:35 EDT 2007

Small fix to last commit's hack, check that we don't have blogDirs or inBlog *after* parsing _config

--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -135,11 +135,11 @@
         blogDirs = () 
     }
 
-    if ( ~ $#inBlog 0 && ~ $i [Bb]log )
-        inBlog = 'yes'
-
     if ( test -f $fpath/_config )
         . $fpath/_config
+
+    if ( ~ $#blogDirs 0 && ~ $#inBlog 0 && ~ $i [Bb]log )
+        inBlog = 'yes'
 }
 
 template=$sitedir/$template.tpl