Skip to content

Commit

Permalink
Force download of files
Browse files Browse the repository at this point in the history
So they don't open in-browser filling the memory
  • Loading branch information
Tampa authored Jun 25, 2019
1 parent 1a9e810 commit a875db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/themes/bootstrap/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@

<?php foreach($dirArray as $name => $fileInfo): ?>
<li data-name="<?php echo $name; ?>" data-href="<?php echo $fileInfo['url_path']; ?>">
<a href="<?php echo $fileInfo['url_path']; ?>" class="clearfix" data-name="<?php echo $name; ?>">
<a href="<?php echo $fileInfo['url_path']; ?>" class="clearfix" data-name="<?php echo $name; ?>" <?php if(strpos($name, '.') !== false && $name !== ".."){ echo("download");} ?>>


<div class="row">
Expand Down

0 comments on commit a875db1

Please sign in to comment.