diff options
author | Jason Oster <parasytic@users.sourceforge.net> | 2010-04-15 18:43:53 +0000 |
---|---|---|
committer | Jason Oster <parasytic@users.sourceforge.net> | 2010-04-15 18:43:53 +0000 |
commit | a412a2938e0708db0cfd4ba55527e58f6ebdf465 (patch) | |
tree | a7544c8d370b23fe16f4734352d36ec2eca59c81 /year.php | |
parent | 2983cba296e02cc31fecaf4507f9c2944f13754d (diff) | |
download | phpicalendar-a412a2938e0708db0cfd4ba55527e58f6ebdf465.tar.gz phpicalendar-a412a2938e0708db0cfd4ba55527e58f6ebdf465.tar.bz2 phpicalendar-a412a2938e0708db0cfd4ba55527e58f6ebdf465.zip |
Another additional performance improvement: Call availableCalendars() only once
Diffstat (limited to 'year.php')
-rw-r--r-- | year.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -23,7 +23,8 @@ $this_month = $day_array2[2]; $this_year = $day_array2[1]; // select for calendars -$list_icals = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED)); +$available = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED); +$list_icals = display_ical_list($available); $list_years = list_years(); $list_months = list_months(); $list_weeks = list_weeks(); @@ -31,7 +32,7 @@ $list_jumps = list_jumps(); $list_calcolors = '<img src="templates/'.$template.'/images/allday_dot.gif" alt=" " width="11" height="10" border="0" />'.$lang['l_all_day'].'<br> <img src="templates/'.$template.'/images/event_dot.gif" alt=" " width="11" height="10" border="0" />'.$lang['l_event']."<br>"; ; -$list_icals_pick = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED), TRUE); +$list_icals_pick = display_ical_list($available, TRUE); // login/logout $is_logged_in = ($username != '' && !$invalid_login) ? true : false; |