diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-02-17 19:29:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-02-17 19:29:07 +0000 |
commit | 01a4c0d827dac4867cf500e47007f15c02910e3d (patch) | |
tree | af6ef42864b64bbf08b28c1e98d147f171817d34 /modules/taxonomy | |
parent | 210311903ebedd1c3d764cbd7983e41813d24319 (diff) | |
download | brdo-01a4c0d827dac4867cf500e47007f15c02910e3d.tar.gz brdo-01a4c0d827dac4867cf500e47007f15c02910e3d.tar.bz2 |
- Patch #222385 by pwolanin: removed drupal_clone() hack in favor of the real PHP5 clone().
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index af40899a5..d649a7bc6 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -838,7 +838,7 @@ function taxonomy_get_tree($vid, $parent = 0, $depth = -1, $max_depth = NULL) { if (!empty($children[$vid][$parent])) { foreach ($children[$vid][$parent] as $child) { if ($max_depth > $depth) { - $term = drupal_clone($terms[$vid][$child]); + $term = clone $terms[$vid][$child]; $term->depth = $depth; // The "parent" attribute is not useful, as it would show one parent only. unset($term->parent); |