forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Makc666 on November 10, 2008, 03:04:27 pm

Title: [cpg1.4.x]: function list_cat_albums -> Hardcoded value 10000
Post by: Makc666 on November 10, 2008, 03:04:27 pm
In file:
index.php

We have a hardcoded value 10000 in code:
Code: [Select]
$cat_owner_id = ($cat > 10000)?(10000 - $cat):(10001);
I think it must be replaced by this one:
Code: [Select]
$cat_owner_id = ($cat > FIRST_USER_CAT)?(FIRST_USER_CAT - $cat):(FIRST_USER_CAT+1);
Title: Re: [cpg1.4.x]: function list_cat_albums -> Hardcoded value 10000
Post by: Joachim Müller on November 10, 2008, 03:56:34 pm
That's wrong as far as I can see. Personal galleries start at 10000 no matter what.