aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2006-03-16 22:34:45 +0000
committerplegall <plg@piwigo.org>2006-03-16 22:34:45 +0000
commit5980db248ab4cc05e8596e07d7efc31048bcb8e8 (patch)
tree8cd6f048c590c0439b93e8a62f72c6300ff323c0 /category.php
parent853bf2a0a5bc77d6ad1d22dbe778eb6b7b1b12be (diff)
bug fixed: create_navigation_bar take into account clean URL if requested.
deletion: argument link_class (HTML class of links) in function create_navigation_bar was removed, useless since branch 1.5. bug fixed: rate_items are now a configuration parameter (set in config file) modification: new functions library functions_rate.inc.php to reduce picture.php length. bug fixed: categories were never expanded in the menu since clean URLs. bug fixed: changing pictures sorting order in main page was always rederecting to root category. git-svn-id: http://piwigo.org/svn/trunk@1084 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'category.php')
-rw-r--r--category.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/category.php b/category.php
index cf41e75ab..4aeaf0f36 100644
--- a/category.php
+++ b/category.php
@@ -28,6 +28,7 @@
//--------------------------------------------------------------------- include
define('PHPWG_ROOT_PATH','./');
include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
+include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
@@ -47,6 +48,7 @@ if ( isset( $_GET['act'] )
$url = 'category.php';
redirect( $url );
}
+
//---------------------------------------------- change of image display order
if (isset($_GET['image_order']))
{
@@ -57,14 +59,13 @@ if (isset($_GET['image_order']))
);
redirect(
- make_index_URL(
- array(),
- array('image_order')
+ duplicate_index_URL(
+ array(), // nothing to redefine
+ array('start') // changing display order goes back to section first page
)
);
}
//-------------------------------------------------------------- initialization
-include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
// detection of the start picture to display
if (!isset($page['start']))
{
@@ -85,7 +86,7 @@ if (isset($page['cat_nb_images'])
$page['cat_nb_images'],
$page['start'],
$user['nb_image_page'],
- 'back'
+ true
);
}
else