bug 1986 fixed: add category description in pwg.categories.getList and
pwg.categories.getAdminList. git-svn-id: http://piwigo.org/svn/branches/2.1@7549 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
a69ea87332
commit
bf60b6420c
1 changed files with 17 additions and 0 deletions
|
@ -405,6 +405,7 @@ function ws_categories_getList($params, &$service)
|
||||||
|
|
||||||
$query = '
|
$query = '
|
||||||
SELECT id, name, permalink, uppercats, global_rank,
|
SELECT id, name, permalink, uppercats, global_rank,
|
||||||
|
comment,
|
||||||
nb_images, count_images AS total_nb_images,
|
nb_images, count_images AS total_nb_images,
|
||||||
date_last, max_date_last, count_categories AS nb_categories
|
date_last, max_date_last, count_categories AS nb_categories
|
||||||
FROM '.CATEGORIES_TABLE.'
|
FROM '.CATEGORIES_TABLE.'
|
||||||
|
@ -435,6 +436,14 @@ SELECT id, name, permalink, uppercats, global_rank,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$row['comment'] = strip_tags(
|
||||||
|
trigger_event(
|
||||||
|
'render_category_description',
|
||||||
|
$row['comment'],
|
||||||
|
'ws_categories_getList'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
array_push($cats, $row);
|
array_push($cats, $row);
|
||||||
}
|
}
|
||||||
usort($cats, 'global_rank_compare');
|
usort($cats, 'global_rank_compare');
|
||||||
|
@ -482,6 +491,7 @@ SELECT
|
||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
|
comment,
|
||||||
uppercats,
|
uppercats,
|
||||||
global_rank
|
global_rank
|
||||||
FROM '.CATEGORIES_TABLE.'
|
FROM '.CATEGORIES_TABLE.'
|
||||||
|
@ -500,6 +510,13 @@ SELECT
|
||||||
'ws_categories_getAdminList'
|
'ws_categories_getAdminList'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
$row['comment'] = strip_tags(
|
||||||
|
trigger_event(
|
||||||
|
'render_category_description',
|
||||||
|
$row['comment'],
|
||||||
|
'ws_categories_getAdminList'
|
||||||
|
)
|
||||||
|
);
|
||||||
array_push($cats, $row);
|
array_push($cats, $row);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue