mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 04:09:56 +03:00
fixes #2279 sort list of dates by array key
for creation and posted date
This commit is contained in:
parent
d0fafcfc13
commit
4124a858f6
1 changed files with 3 additions and 0 deletions
|
@ -214,6 +214,7 @@ SELECT
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
krsort($date_posted['list_of_dates']);
|
||||||
|
|
||||||
$template->assign('LIST_DATE_POSTED', $date_posted['list_of_dates']);
|
$template->assign('LIST_DATE_POSTED', $date_posted['list_of_dates']);
|
||||||
$template->assign('DATE_POSTED', $counters);
|
$template->assign('DATE_POSTED', $counters);
|
||||||
|
@ -317,6 +318,8 @@ SELECT
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
krsort($date_created['list_of_dates']);
|
||||||
|
|
||||||
$template->assign('LIST_DATE_CREATED', $date_created['list_of_dates']);
|
$template->assign('LIST_DATE_CREATED', $date_created['list_of_dates']);
|
||||||
$template->assign('DATE_CREATED', $counters);
|
$template->assign('DATE_CREATED', $counters);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue