aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/sysenv.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-10-10 12:44:55 +0100
committerRalph Amissah <ralph@amissah.com>2007-10-10 12:44:55 +0100
commitc07cf3661d3964e339d31de63cc93331615856bb (patch)
treea78e883b0eaf9f25d7bb6da3d2d4a7f44671969b /lib/sisu/v0/sysenv.rb
parentchangelog update (diff)
sysenv, extra check for sisurc search info (and a cosmetic change (quotes))
Diffstat (limited to 'lib/sisu/v0/sysenv.rb')
-rw-r--r--lib/sisu/v0/sysenv.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/sisu/v0/sysenv.rb b/lib/sisu/v0/sysenv.rb
index 48161592..4080795d 100644
--- a/lib/sisu/v0/sysenv.rb
+++ b/lib/sisu/v0/sysenv.rb
@@ -68,7 +68,7 @@ module SiSU_Env
@dt,@t=Date.today.to_s,Time.now
end
def week
- w=@t.strftime("%W")
+ w=@t.strftime('%W')
"#{@t.year}w#{w}"
end
def month
@@ -79,7 +79,7 @@ module SiSU_Env
end
def weekonly
#@t.cweek
- @t.strftime("%W")
+ @t.strftime('%W')
end
def monthonly
@t.month
@@ -917,7 +917,8 @@ module SiSU_Env
table_close='<br />'
end
form=if create_form_sisu and type=~/sisusearch/ and
- defined? rc['search']['sisu']
+ defined? rc['search']['sisu'] and
+ defined? rc['search']['sisu']['action']
<<WOK
<!-- SiSU Search -->
#{table_open}