diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-10-25 16:41:05 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-10-25 16:41:05 +0000 |
commit | 41fd74163b78cb9377a38b2a2e63b194fc321f0d (patch) | |
tree | ebff2d08018bbaa7785e6ff651620e4716563dca /functions | |
parent | e481bdad8a23e896643b867a6d5bb2d0f91fea0f (diff) | |
download | phpicalendar-41fd74163b78cb9377a38b2a2e63b194fc321f0d.tar.gz phpicalendar-41fd74163b78cb9377a38b2a2e63b194fc321f0d.tar.bz2 phpicalendar-41fd74163b78cb9377a38b2a2e63b194fc321f0d.zip |
[ 1046871 ] Quick fix to make $show_todos work
Diffstat (limited to 'functions')
-rw-r--r-- | functions/template.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/template.php b/functions/template.php index cb0d805..e9595d1 100644 --- a/functions/template.php +++ b/functions/template.php @@ -625,7 +625,7 @@ class Page { } function get_vtodo() { - global $template, $getdate, $master_array, $next_day, $timeFormat, $tomorrows_events_lines, $show_completed; + global $template, $getdate, $master_array, $next_day, $timeFormat, $tomorrows_events_lines, $show_completed, $show_todos; preg_match("!<\!-- switch show_completed on -->(.*)<\!-- switch show_completed off -->!is", $this->page, $match1); preg_match("!<\!-- switch show_important on -->(.*)<\!-- switch show_important off -->!is", $this->page, $match2); @@ -690,7 +690,7 @@ class Page { } // If there are no TODO items, completely hide the TODO list. - if ($nugget2 == '') { + if (($nugget2 == '') || ($show_todos != 'yes')) { $this->page = preg_replace('!<\!-- switch vtodo on -->(.*)<\!-- switch vtodo off -->!is', '', $this->page); } |