aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-01-15 00:09:14 +0000
committerrub <rub@piwigo.org>2007-01-15 00:09:14 +0000
commit9362801a48c6e88fcc9bd56e69ba044f718c6b74 (patch)
tree5c05741cb7262fc51d6c6ad6b6b2bd8c44e0353f /index.php
parent3cef1e6895ed3daeb398980b22cab1c1edefa3c3 (diff)
There are no filter enabled if filter configuration is empty (no icon, no functions, ...)
New system for the filter page configuration View mode flat_recent_cat becomes flat_cat (recent period is removed because global filter is sufficient) Recent period of global filter must be defined "after" start parameter (default value is $user['recent_period']). git-svn-id: http://piwigo.org/svn/trunk@1722 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--index.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/index.php b/index.php
index 48e309633..0352e8a88 100644
--- a/index.php
+++ b/index.php
@@ -106,22 +106,22 @@ if (isset($page['cat_nb_images']) and $page['cat_nb_images'] > 0)
$template_title.= ' ['.$page['cat_nb_images'].']';
}
-if (isset($page['flat_recent_cat']) or isset($page['chronology_field']))
+if (isset($page['flat_cat']) or isset($page['chronology_field']))
{
$template->assign_block_vars(
'mode_normal',
array(
- 'URL' => duplicate_index_url( array(), array('chronology_field', 'start', 'flat_recent_cat') )
+ 'URL' => duplicate_index_url( array(), array('chronology_field', 'start', 'flat_cat') )
)
);
}
-if (!isset($page['flat_recent_cat']) and 'categories'==$page['section'])
+if (!isset($page['flat_cat']) and 'categories' == $page['section'])
{
$template->assign_block_vars(
- 'flat_recent_cat',
+ 'flat_cat',
array(
- 'URL' => duplicate_index_url(array('flat_recent_cat' => $user['recent_period']), array('start', 'chronology_field'))
+ 'URL' => duplicate_index_url(array('flat_cat' => ''), array('start', 'chronology_field'))
)
);
}
@@ -137,7 +137,7 @@ if (!isset($page['chronology_field']))
$template->assign_block_vars(
'mode_created',
array(
- 'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_recent_cat') )
+ 'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_cat') )
)
);
@@ -145,7 +145,7 @@ if (!isset($page['chronology_field']))
$template->assign_block_vars(
'mode_posted',
array(
- 'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_recent_cat') )
+ 'URL' => duplicate_index_url( $chronology_params, array('start', 'flat_cat') )
)
);
}
@@ -161,7 +161,7 @@ else
}
$url = duplicate_index_url(
array('chronology_field'=>$chronology_field ),
- array('chronology_date', 'start', 'flat_recent_cat')
+ array('chronology_date', 'start', 'flat_cat')
);
$template->assign_block_vars(
'mode_'.$chronology_field,