aboutsummaryrefslogtreecommitdiffstats
path: root/functions/list_functions.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-16 15:46:24 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-16 15:46:24 +0000
commitac501f092835e07d6d4683f29824f9b54e7ee162 (patch)
tree135d307e41bbc781dc8eaa361517f9bcf50f2bdb /functions/list_functions.php
parentdef4803124150ffa584a41106aeb2865498787ca (diff)
downloadphpicalendar-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.php8
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&amp;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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy