aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-02-20 04:39:37 +0000
committerrvelices <rv-github@modusoptimus.com>2006-02-20 04:39:37 +0000
commitd62ce7376079a7435317fc843eb04f3927e4adad (patch)
treef0c689b50fa7107cdb280b21e1e9309b835ee802 /include/section_init.inc.php
parent08b63815640b2fc8059c243a4f9feaf865801a25 (diff)
calendar redesign: step 1
git-svn-id: http://piwigo.org/svn/trunk@1047 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/section_init.inc.php')
-rw-r--r--include/section_init.inc.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index f864a288e..d0c9522cd 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -93,13 +93,12 @@ if (isset($_GET['cat']))
}
}
+// $page['nb_image_page'] is the number of picture to display on this page
+// By default, it is the same as the $user['nb_image_page']
+$page['nb_image_page'] = $user['nb_image_page'];
if (isset($page['cat']))
{
- // $page['nb_image_page'] is the number of picture to display on this page
- // By default, it is the same as the $user['nb_image_page']
- $page['nb_image_page'] = $user['nb_image_page'];
-
if ($page['cat'] != 'most_visited' and $page['cat'] != 'best_rated')
{
if (isset($_COOKIE['pwg_image_order'])
@@ -397,4 +396,11 @@ else
$page['title'] = $lang['no_category'];
$page['thumbnails_include'] = 'include/category_subcats.inc.php';
}
+
+if ( isset($_GET['calendar']) )
+{
+ include_once( PHPWG_ROOT_PATH.'include/functions_calendar.inc.php' );
+ initialize_calendar();
+}
+
?> \ No newline at end of file