diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-12 06:22:57 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-12 06:22:57 +0000 |
commit | f624f9143722a6e32f702f6e75f24ae457f85d8c (patch) | |
tree | 01632d35bb38e6602e5a4ecd00bebe2fb45855a6 /month.php | |
parent | 2fb022abbfa5eeac033992841ca11d9642bc4508 (diff) | |
download | phpicalendar-f624f9143722a6e32f702f6e75f24ae457f85d8c.tar.gz phpicalendar-f624f9143722a6e32f702f6e75f24ae457f85d8c.tar.bz2 phpicalendar-f624f9143722a6e32f702f6e75f24ae457f85d8c.zip |
misc changes for new config model
Diffstat (limited to 'month.php')
-rw-r--r-- | month.php | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -46,14 +46,14 @@ $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); $list_icals_pick = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED), TRUE); -$page = new Page(BASE.'templates/'.$template.'/month.tpl'); +$page = new Page(BASE.'templates/'.$phpiCal_config->template.'/month.tpl'); $page->replace_files(array( - 'header' => BASE.'templates/'.$template.'/header.tpl', + 'header' => BASE.'templates/'.$phpiCal_config->template.'/header.tpl', 'event_js' => BASE.'functions/event.js', - 'footer' => BASE.'templates/'.$template.'/footer.tpl', - 'calendar_nav' => BASE.'templates/'.$template.'/calendar_nav.tpl', - 'search_box' => BASE.'templates/'.$template.'/search_box.tpl' + 'footer' => BASE.'templates/'.$phpiCal_config->template.'/footer.tpl', + 'calendar_nav' => BASE.'templates/'.$phpiCal_config->template.'/calendar_nav.tpl', + 'search_box' => BASE.'templates/'.$phpiCal_config->template.'/search_box.tpl' )); $page->replace_tags(array( @@ -105,13 +105,13 @@ $page->replace_tags(array( 'l_this_site_is' => $lang['l_this_site_is'] )); -if ($allow_preferences != 'yes') { +if ($phpiCal_config->allow_preferences != 'yes') { $page->replace_tags(array( 'allow_preferences' => '' )); } -if ($allow_login == 'yes') { +if ($phpiCal_config->allow_login == 'yes') { $page->replace_tags(array( 'l_invalid_login' => $lang['l_invalid_login'], 'l_password' => $lang['l_password'], @@ -121,7 +121,7 @@ if ($allow_login == 'yes') { )); } -if ($show_search != 'yes') { +if ($phpiCal_config->show_search != 'yes') { $page->nosearch($page); } |