Closed (duplicate)
Project:
Category
Version:
5.x-1.1
Component:
Wrapper modules
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2007 at 09:19 UTC
Updated:
5 Sep 2009 at 18:27 UTC
taxonomy_get_vocabulary function in taxonomy wrapper module returns array This function in original taxonomy module returns it as object. Change in return value breaks some dependent functions ( i faced the problem in tagadelic module). So this function in wrapper module must return same information as object. I solved this problem by adding the following line of code at the end of the function taxonomy_get_vocabulary in wrapper module.
//return $vocabulary;
foreach($vocabulary as $vockey => $vocvalue){
$vocobject->$vockey = $vocvalue;
}
return $vocobject;
Comments
Comment #1
JirkaRybka commentedDuplicate of #338846: Taxonomy Wrapper 1.26.2.2: taxonomy_get_vocabulary as object instead of array?.