summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-07-30 13:20:28 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2013-07-30 13:20:28 -0700
commitd3e610f589735f78737a22c4b080428e6ace3b5d (patch)
treead3121ac7bd4b8bc38ce024bb194ae042b267bd7 /core
parentdc8132f3a39c687b6315616f9f9f4ed9f81245b0 (diff)
parent15e9e95817a2d58951400c8a01ffdd89a573c9b3 (diff)
downloadnextcloud-server-d3e610f589735f78737a22c4b080428e6ace3b5d.tar.gz
nextcloud-server-d3e610f589735f78737a22c4b080428e6ace3b5d.zip
Merge pull request #4225 from owncloud/better-404
More verbose 404, closes #3225
Diffstat (limited to 'core')
-rw-r--r--core/templates/404.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/core/templates/404.php b/core/templates/404.php
index ee17f0de8e1..bf1e03e6bc9 100644
--- a/core/templates/404.php
+++ b/core/templates/404.php
@@ -7,9 +7,13 @@ if(!isset($_)) {//also provide standalone error page
exit;
}
?>
-<ul>
- <li class='error'>
- <?php p($l->t( 'Cloud not found' )); ?><br/>
- <p class='hint'><?php if(isset($_['file'])) p($_['file'])?></p>
- </li>
-</ul>
+<?php if (isset($_['content'])): ?>
+ <?php print_unescaped($_['content']) ?>
+<?php else: ?>
+ <ul>
+ <li class="error">
+ <?php p($l->t( 'Cloud not found' )); ?><br/>
+ <p class='hint'><?php if(isset($_['file'])) p($_['file'])?></p>
+ </li>
+ </ul>
+<?php endif; ?>