diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-17 22:49:37 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-17 22:57:32 +0200 |
commit | 8fc1a9f5a9c6ba1be8ff2ae6f2c693e21183696d (patch) | |
tree | d5e300bfcd4148882ec16c8c7dcaf0477efec980 /core/templates/404.php | |
parent | 7db0d5512910e768912f615cb408677e38735d91 (diff) | |
download | nextcloud-server-8fc1a9f5a9c6ba1be8ff2ae6f2c693e21183696d.tar.gz nextcloud-server-8fc1a9f5a9c6ba1be8ff2ae6f2c693e21183696d.zip |
Make 404 page easier to understand
Fixes https://github.com/owncloud/core/issues/11133
Diffstat (limited to 'core/templates/404.php')
-rw-r--r-- | core/templates/404.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/templates/404.php b/core/templates/404.php index bf1e03e6bc9..90912844ef9 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; ?> |