views_bonus_panels_threecol_term uses outdated api function _taxonomy_depth()

alaa - February 6, 2008 - 23:45
Project:Views Bonus Pack
Version:5.x-1.x-dev
Component:Bonus Panel Views
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

_taxonomy_depth() used in views_bonus_panels_threecol_term.module is not present in Drupal 5, leading to undefined function errors, function is only used to draw the '--' depth indicator and can be replaced with str_repeat()

diff -r1.2.2.4 views_bonus_panels_threecol_term.module
22c22
<       $prefix = _taxonomy_depth($term->depth-1). '&nbsp;';
---
>       $prefix = str_repeat('--', $term->depth-1). '&nbsp;';

AttachmentSize
views_bonus_panels_threecol_term.patch443 bytes

#1

dmitrig01 - May 10, 2008 - 14:42
Status:patch (code needs review)» fixed

Committed.

#2

Anonymous (not verified) - May 24, 2008 - 14:51
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.