diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-16 15:46:24 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-16 15:46:24 +0000 |
commit | ac501f092835e07d6d4683f29824f9b54e7ee162 (patch) | |
tree | 135d307e41bbc781dc8eaa361517f9bcf50f2bdb /functions/list_functions.php | |
parent | def4803124150ffa584a41106aeb2865498787ca (diff) | |
download | phpicalendar-ac501f092835e07d6d4683f29824f9b54e7ee162.tar.gz phpicalendar-ac501f092835e07d6d4683f29824f9b54e7ee162.tar.bz2 phpicalendar-ac501f092835e07d6d4683f29824f9b54e7ee162.zip |
progress on recurrence
Diffstat (limited to 'functions/list_functions.php')
-rw-r--r-- | functions/list_functions.php | 8 |
1 files changed, 4 insertions, 4 deletions
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 .= "<option value=\"year.php?cal=$cal&getdate=$getdate_date\" selected=\"selected\">$getdate_year</option>\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); |