Added Download file, play for homebrews and ZIP explorer.
This commit is contained in:
@@ -77,9 +77,11 @@ class FileServerController extends Controller {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
if( !EntryHelpers::fileAlreadyDownloaded($file) ) {
|
||||
EntryHelpers::markFileAsDownloaded($file);
|
||||
$file->increaseDownloadCount();
|
||||
if($request->input('count_download', true)) {
|
||||
if (!EntryHelpers::fileAlreadyDownloaded($file)) {
|
||||
EntryHelpers::markFileAsDownloaded($file);
|
||||
$file->increaseDownloadCount();
|
||||
}
|
||||
}
|
||||
|
||||
return redirect( $this->fs->getDownloadFileUrl( $file) );
|
||||
|
||||
Reference in New Issue
Block a user