Skip to content

Commit

Permalink
Bugfix: links are now shown again after refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
realtimeprojects committed Nov 3, 2013
1 parent 6df4755 commit ec279cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/_include/fun_down.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ function _is_download_allowed( $dir, $items )

if (!get_show_item($dir, $file))
return false;

if (!file_exists(get_abs_item( $directory, $file )))
return false;
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion src/_include/fun_extra.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function get_abs_dir($path)
}

function get_abs_item($dir, $item) { // get absolute file+path
return realpath(get_abs_dir($dir).DIRECTORY_SEPARATOR.$item);
return get_abs_dir($dir).DIRECTORY_SEPARATOR.$item;
}
/**
get file relative from home
Expand Down

0 comments on commit ec279cf

Please sign in to comment.