Skip to content

Commit b2e1fa8

Browse files
committed
Fix memorizing of category params to regenerate correct urls
1 parent 0eeb826 commit b2e1fa8

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

inc/_core/_param.funcs.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,10 @@ function param_extend_list( $var, $var_ext_array, $save_prefix = true )
13501350
/**
13511351
* Compiles the cat array from $cat (recursive + optional modifiers) and $catsel[] (non recursive)
13521352
* and keeps those values available for future reference (category widget)
1353+
*
1354+
* @param integer Colection ID to restrict chapters only from this collection
1355+
* @param integer Default category ID
1356+
* @param array Default categories IDs
13531357
*/
13541358
function param_compile_cat_array( $restrict_to_blog = 0, $cat_default = NULL, $catsel_default = array() )
13551359
{

inc/items/model/_itemlistlight.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ function load_from_Request( $use_filters = true )
400400
}
401401

402402
// Get chapters/categories (and compile those values right away)
403-
param_compile_cat_array( !is_null( $this->Blog ) ? $this->Blog->ID : 0, $cat, $catsel );
403+
param_compile_cat_array( ( is_null( $this->Blog ) ? 0 : $this->Blog->ID ), $this->default_filters['cat_modifier'], $this->default_filters['cat_array'] );
404404

405405
$this->filters['cat_array'] = get_param( 'cat_array' );
406406
$this->filters['cat_modifier'] = get_param( 'cat_modifier' );

0 commit comments

Comments
 (0)