function _getDirectoryParentsArr($dir, $path = array()) { $db = _getDirectoryDbInfo($dir); if (!$db) { return $path; } $pdir = $db['parent']; array_unshift($path, $pdir); if ($pdir > 1) { $path = _getDirectoryParentsArr($pdir, $path); } return $path; }
function kfm_getDirectoryParentsArr($pid, $path = array()) { include_once KFM_BASE_PATH . 'includes/directories.php'; return _getDirectoryParentsArr($pid, $path); }