[Pkg-owncloud-commits] [owncloud] 84/258: Make 404 page easier to understand
David Prévot
taffit at moszumanska.debian.org
Sat Oct 11 17:22:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 28f462095db4f0171ab2f34d6b51c5d162808b8b
Author: Lukas Reschke <lukas at owncloud.com>
Date: Wed Sep 17 22:49:37 2014 +0200
Make 404 page easier to understand
Fixes https://github.com/owncloud/core/issues/11133
---
core/templates/404.php | 7 +++++--
lib/private/files.php | 1 -
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/core/templates/404.php b/core/templates/404.php
index bf1e03e..9091284 100644
--- a/core/templates/404.php
+++ b/core/templates/404.php
@@ -1,4 +1,6 @@
<?php
+/** @var $_ array */
+/** @var $l OC_L10N */
if(!isset($_)) {//also provide standalone error page
require_once '../../lib/base.php';
@@ -12,8 +14,9 @@ if(!isset($_)) {//also provide standalone error page
<?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; ?>
diff --git a/lib/private/files.php b/lib/private/files.php
index 06fc2dc..a983f6f 100644
--- a/lib/private/files.php
+++ b/lib/private/files.php
@@ -116,7 +116,6 @@ class OC_Files {
} 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");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list