]> source.dussan.org Git - nextcloud-server.git/commitdiff
display the original file name - this will change in case of renames
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 22 Oct 2013 12:02:44 +0000 (14:02 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 22 Oct 2013 12:02:44 +0000 (14:02 +0200)
apps/files_sharing/templates/public.php

index 1f5453468b4ef82c907f7a142329194dd5cf78d9..ef4c1c433da21579ebb2a2c109a295818b2041ed 100644 (file)
                <div class="header-right">
                        <?php if (isset($_['folder'])): ?>
                                <span id="details"><?php p($l->t('%s shared the folder %s with you',
-                                               array($_['displayName'], $_['fileTarget']))) ?></span>
+                                               array($_['displayName'], $_['filename']))) ?></span>
                        <?php else: ?>
                                <span id="details"><?php p($l->t('%s shared the file %s with you',
-                                               array($_['displayName'], $_['fileTarget']))) ?></span>
+                                               array($_['displayName'], $_['filename']))) ?></span>
                        <?php endif; ?>
 
 
@@ -88,7 +88,7 @@
                        <?php else: ?>
                                <ul id="noPreview">
                                        <li class="error">
-                                               <?php p($l->t('No preview available for').' '.$_['fileTarget']); ?><br />
+                                               <?php p($l->t('No preview available for').' '.$_['filename']); ?><br />
                                                <a href="<?php p($_['downloadURL']); ?>" id="download"><img class="svg" alt="Download"
                                                                                                            src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>"
                                                                /><?php p($l->t('Download'))?></a>