Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
7640f490
Commit
7640f490
authored
Jun 02, 2004
by
Dries
Browse files
- Patch
#8244
by walkah: Taxonomy_get_tree changes break mt.getCategoryList
parent
c3463a22
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/blogapi.module
View file @
7640f490
...
...
@@ -263,7 +263,7 @@ function blogapi_get_category_list($req_params) {
$categories
=
array
();
if
(
$vocabularies
)
{
foreach
(
$vocabularies
as
$vocabulary
)
{
$terms
=
module_invoke
(
'taxonomy'
,
'get_tree'
,
$vocabulary
->
vid
,
0
,
-
1
,
'tid'
);
$terms
=
module_invoke
(
'taxonomy'
,
'get_tree'
,
$vocabulary
->
vid
,
0
,
-
1
);
foreach
(
$terms
as
$term
)
{
$term_name
=
$term
->
name
;
foreach
(
module_invoke
(
'taxonomy'
,
'get_parents'
,
$term
->
tid
,
'tid'
)
as
$parent
)
{
...
...
modules/blogapi/blogapi.module
View file @
7640f490
...
...
@@ -263,7 +263,7 @@ function blogapi_get_category_list($req_params) {
$categories
=
array
();
if
(
$vocabularies
)
{
foreach
(
$vocabularies
as
$vocabulary
)
{
$terms
=
module_invoke
(
'taxonomy'
,
'get_tree'
,
$vocabulary
->
vid
,
0
,
-
1
,
'tid'
);
$terms
=
module_invoke
(
'taxonomy'
,
'get_tree'
,
$vocabulary
->
vid
,
0
,
-
1
);
foreach
(
$terms
as
$term
)
{
$term_name
=
$term
->
name
;
foreach
(
module_invoke
(
'taxonomy'
,
'get_parents'
,
$term
->
tid
,
'tid'
)
as
$parent
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment