Example #1
0
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;
}
Example #2
0
function kfm_getDirectoryParentsArr($pid, $path = array())
{
    include_once KFM_BASE_PATH . 'includes/directories.php';
    return _getDirectoryParentsArr($pid, $path);
}