Update apps/files/templates/part.list.php
prevent multiple slashes in a row when building URLs.
This commit is contained in:
parent
766a301a6b
commit
1f9551a382
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@
|
|||
>
|
||||
<?php if(!isset($_['readonly']) || !$_['readonly']): ?><input type="checkbox" /><?php endif; ?>
|
||||
<?php if($file['type'] == 'dir'): ?>
|
||||
<a class="name" href="<?php echo $_['baseURL'].$directory.'/'.$name; ?>" title="">
|
||||
<a class="name" href="<?php echo rtrim($_['baseURL'],'/').'/'.trim($directory,'/').'/'.$name; ?>" title="">
|
||||
<?php else: ?>
|
||||
<a class="name" href="<?php echo $_['downloadURL'].$directory.'/'.$name; ?>" title="">
|
||||
<a class="name" href="<?php echo rtrim($_['downloadURL'],'/').'/'.trim($directory,'/').'/'.$name; ?>" title="">
|
||||
<?php endif; ?>
|
||||
<span class="nametext">
|
||||
<?php if($file['type'] == 'dir'):?>
|
||||
|
|
Loading…
Reference in a new issue