diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 00:46:49 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 00:46:49 +0000 |
commit | 8933f4144fa0fe022d9939ed2e2f31743f6de939 (patch) | |
tree | cadf734d6b6e3fde054cd3386f70aed0d80b46e9 /index.php | |
parent | a8a822e8fe1916540ea4bce97c4861bb452ab21f (diff) | |
download | phpicalendar-8933f4144fa0fe022d9939ed2e2f31743f6de939.tar.gz phpicalendar-8933f4144fa0fe022d9939ed2e2f31743f6de939.tar.bz2 phpicalendar-8933f4144fa0fe022d9939ed2e2f31743f6de939.zip |
add back link to print view
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -3,19 +3,18 @@ if (!defined('BASE')) define('BASE', './'); include_once(BASE.'functions/init.inc.php'); if ($phpiCal_config->printview_default == 'yes') { - $printview = $phpiCal_config->default_view; - $phpiCal_config->setProperty('default_view', "print.php"); + $theview ="print.php"; } else { $check = array ('day', 'week', 'month', 'year'); if (in_array($phpiCal_config->default_view, $check)) { - $phpiCal_config->setProperty('default_view', $phpiCal_config->default_view . '.php'); + $theview = $phpiCal_config->default_view . '.php'; } else { die('illegal view'); } } if(isset($_GET['cpath'])){ - $phpiCal_config->default_view .= '?cpath='.$_GET['cpath']; + $theview .= '?cpath='.$_GET['cpath']; } -header("Location: $phpiCal_config->default_view"); +header("Location: $theview"); ?> |