aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v0/defaults.rb2
-rw-r--r--lib/sisu/v0/sysenv.rb7
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/sisu/v0/defaults.rb b/lib/sisu/v0/defaults.rb
index 4d97aed1..47fbeec8 100644
--- a/lib/sisu/v0/defaults.rb
+++ b/lib/sisu/v0/defaults.rb
@@ -1328,7 +1328,7 @@ WOK
<b>#{v[:project]}</b>
</a>
Copyright <sup>&copy;</sup> Ralph Amissah
- 1997, current #{@date.year_static}.
+ 1997, current #{@date.year_static}.
All Rights Reserved.
<br />
<a href="#{url_sisu}" #{js_sisu}>
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}