[dev] Mismatch in Kronolith::listCategories and Kronolith::formatCategory

David U. davidu@everydns.net
Mon, 16 Sep 2002 09:15:22 -0500


Hi,

In the Kronolith category code formatCategory gets called and returns:

$categories = Kronolith::listCategories();
return isset($categories[$share_id][$categoryID]) ?
                 $categories[$share_id][$categoryID] :
                 $categories[$share_id][0];

However, listCategories() does not return an array with a share_id:

            foreach ($cats as $cat) {
                list($key, $val) = explode(':', $cat);
                $categories[$key] = $val;
            }

Is this just a case of one not being updated yet or is one of these
deprecated?

-davidu


--
"Never doubt that a small group of thoughtful citizens can change the
world. Indeed, it is the only thing that ever has." --Margaret Mead