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

Topic: [BUG] show_archives.php archive order

$matches[1] 1.3.6 - * (no incompatibility reported yet)
$matches[1] 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.
$matches[1]
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 ".handle_img_tag($matches[1].$matches[3], false)."