From ac501f092835e07d6d4683f29824f9b54e7ee162 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Tue, 16 Dec 2008 15:46:24 +0000 Subject: progress on recurrence --- functions/list_functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'functions/list_functions.php') diff --git a/functions/list_functions.php b/functions/list_functions.php index 8a6344d..0ec2474 100644 --- a/functions/list_functions.php +++ b/functions/list_functions.php @@ -48,11 +48,11 @@ function list_months() { function list_years() { - global $getdate, $this_year, $cal, $num_years; + global $getdate, $this_year, $cal, $phpiCal_config; $year_time = strtotime($getdate); $return = ''; - for ($i=0; $i < $num_years; $i++) { - $offset = $num_years - $i; + for ($i=0; $i < $phpiCal_config->num_years; $i++) { + $offset = $phpiCal_config->num_years - $i; $prev_time = strtotime("-$offset year", $year_time); $prev_date = date("Ymd", $prev_time); $prev_year = date("Y", $prev_time); @@ -63,7 +63,7 @@ function list_years() { $getdate_year = date("Y", $year_time); $return .= "\n"; - for ($i=0; $i < $num_years; $i++) { + for ($i=0; $i < $phpiCal_config->num_years; $i++) { $offset = $i + 1; $next_time = strtotime("+$offset year", $year_time); $next_date = date("Ymd", $next_time); -- cgit v1.2.3