mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 20:29:58 +03:00
fixes #1307 render album name on 11.x new features
* related albums * move albums * search albums
This commit is contained in:
parent
db65aa51d5
commit
86047e2280
3 changed files with 8 additions and 1 deletions
|
@ -79,6 +79,8 @@ SELECT id, name, id_uppercat
|
|||
$result = pwg_query($query);
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
$row['name'] = trigger_change('render_category_name', $row['name'], 'admin_cat_list');
|
||||
|
||||
if ($order_by_date)
|
||||
{
|
||||
$sort[] = $ref_dates[ $row['id'] ];
|
||||
|
@ -136,6 +138,8 @@ $associatedTree = array();
|
|||
|
||||
foreach ($allAlbum as $album)
|
||||
{
|
||||
$album['name'] = trigger_change('render_category_name', $album['name'], 'admin_cat_list');
|
||||
|
||||
$parents = explode(',',$album['uppercats']);
|
||||
$the_place = &$associatedTree[strval($parents[0])];
|
||||
for ($i=1; $i < count($parents); $i++)
|
||||
|
|
|
@ -40,6 +40,8 @@ $result = query2array($query);
|
|||
|
||||
foreach ($result as $cat)
|
||||
{
|
||||
$cat['name'] = trigger_change('render_category_name', $cat['name'], 'admin_cat_list');
|
||||
|
||||
$private = ($cat['status'] == 'private')? 1:0;
|
||||
|
||||
$parents = explode(',', $cat['uppercats']);
|
||||
|
|
|
@ -752,6 +752,7 @@ SELECT
|
|||
// if the category is directly linked to the items, we add an URL + counter
|
||||
if (isset($common_cats[ $cat['id'] ]))
|
||||
{
|
||||
$cats[$idx]['name'] = trigger_change('render_category_name', $cat['name'], $cat);
|
||||
$cats[$idx]['count_images'] = $common_cats[ $cat['id'] ]['counter'];
|
||||
|
||||
$url_params = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue