Fixes https://github.com/owncloud/core/issues/11133
<?php
+/** @var $_ array */
+/** @var $l OC_L10N */
if(!isset($_)) {//also provide standalone error page
require_once '../../lib/base.php';
<?php else: ?>
<ul>
<li class="error">
- <?php p($l->t( 'Cloud not found' )); ?><br/>
- <p class='hint'><?php if(isset($_['file'])) p($_['file'])?></p>
+ <?php p($l->t('File not found')); ?><br/>
+ <p class="hint"><?php p($l->t('The specified document has not been found on the server.')); ?></p>
+ <p class="hint"><a href="<?php p(OC_Helper::linkTo('', 'index.php')) ?>"><?php p($l->t('You can click here to return to %s.', array($theme->getName()))); ?></a></p>
</li>
</ul>
<?php endif; ?>
} elseif (!\OC\Files\Filesystem::file_exists($filename)) {
header("HTTP/1.0 404 Not Found");
$tmpl = new OC_Template('', '404', 'guest');
- $tmpl->assign('file', $name);
$tmpl->printPage();
} else {
header("HTTP/1.0 403 Forbidden");