1 (edited by 2008-10-30 16:13:19)

Topic: [BUG] show_archives.php archive order

CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet)
Description: When listing all archives it might happen that the archives are'nt ordered by date. This happens when not using the auto-archive but when manually archiving.
Instructions:
in show_archives.php find

if(is_array($arch_arr)){
$arch_arr = array_reverse($arch_arr);

and replace with

if(is_array($arch_arr)){
rsort($arch_arr);
$arch_arr = array_reverse($arch_arr);

Re: [BUG] show_archives.php archive order

I might be wrong about this, but isn't

rsort($arch_arr);
$arch_arr = array_reverse($arch_arr);

The same as

sort($arch_arr);

As first you sort the array in reversed order with rsort, and then you reverse it again with array_reverse... So it's a reversed rsort, the same as sort https://cutephp.com/forum/style_emoticons/default/smile.gif