From: <par...@us...> - 2010-04-15 18:44:00
|
Update of /cvsroot/phpicalendar/phpicalendar In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20867 Modified Files: day.php month.php week.php year.php Log Message: Another additional performance improvement: Call availableCalendars() only once Index: day.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/day.php,v retrieving revision 1.139 retrieving revision 1.140 diff -C2 -d -r1.139 -r1.140 *** day.php 22 Jun 2009 14:31:03 -0000 1.139 --- day.php 15 Apr 2010 18:43:53 -0000 1.140 *************** *** 37,41 **** // select for calendars ! $list_icals = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED)); $list_years = list_years(); $list_months = list_months(); --- 37,42 ---- // select for calendars ! $available = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED); ! $list_icals = display_ical_list($available); $list_years = list_years(); $list_months = list_months(); *************** *** 43,47 **** $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED), TRUE); // login/logout --- 44,48 ---- $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list($available, TRUE); // login/logout Index: month.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/month.php,v retrieving revision 1.154 retrieving revision 1.155 diff -C2 -d -r1.154 -r1.155 *** month.php 7 Jul 2009 14:48:28 -0000 1.154 --- month.php 15 Apr 2010 18:43:53 -0000 1.155 *************** *** 47,51 **** // select for calendars ! $list_icals = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED)); $list_years = list_years(); $list_months = list_months(); --- 47,52 ---- // select for calendars ! $available = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED); ! $list_icals = display_ical_list($available); $list_years = list_years(); $list_months = list_months(); *************** *** 53,57 **** $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED), TRUE); // login/logout --- 54,58 ---- $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list($available, TRUE); // login/logout Index: week.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/week.php,v retrieving revision 1.139 retrieving revision 1.140 diff -C2 -d -r1.139 -r1.140 *** week.php 22 Jun 2009 14:31:03 -0000 1.139 --- week.php 15 Apr 2010 18:43:53 -0000 1.140 *************** *** 38,42 **** // select for calendars ! $list_icals = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED)); $list_years = list_years(); $list_months = list_months(); --- 38,43 ---- // select for calendars ! $available = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED); ! $list_icals = display_ical_list($available); $list_years = list_years(); $list_months = list_months(); *************** *** 44,48 **** $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED), TRUE); // login/logout --- 45,49 ---- $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list($available, TRUE); // login/logout Index: year.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/year.php,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** year.php 7 Jul 2009 14:48:28 -0000 1.53 --- year.php 15 Apr 2010 18:43:53 -0000 1.54 *************** *** 24,28 **** // select for calendars ! $list_icals = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED)); $list_years = list_years(); $list_months = list_months(); --- 24,29 ---- // select for calendars ! $available = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED); ! $list_icals = display_ical_list($available); $list_years = list_years(); $list_months = list_months(); *************** *** 32,36 **** <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); // login/logout --- 33,37 ---- <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($available, TRUE); // login/logout |