Changeset 1084 for trunk/category.php


Ignore:
Timestamp:
Mar 16, 2006, 11:34:45 PM (18 years ago)
Author:
plg
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/category.php

    r1083 r1084  
    2929define('PHPWG_ROOT_PATH','./');
    3030include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
     31include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
    3132
    3233// +-----------------------------------------------------------------------+
     
    4849  redirect( $url );
    4950}
     51
    5052//---------------------------------------------- change of image display order
    5153if (isset($_GET['image_order']))
     
    5860
    5961  redirect(
    60     make_index_URL(
    61       array(),
    62       array('image_order')
     62    duplicate_index_URL(
     63      array(),        // nothing to redefine
     64      array('start')  // changing display order goes back to section first page
    6365      )
    6466    );
    6567}
    6668//-------------------------------------------------------------- initialization
    67 include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
    6869// detection of the start picture to display
    6970if (!isset($page['start']))
     
    8687    $page['start'],
    8788    $user['nb_image_page'],
    88     'back'
     89    true
    8990    );
    9091}
Note: See TracChangeset for help on using the changeset viewer.