summaryrefslogtreecommitdiffstats
path: root/core/templates/404.php
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-07-29 16:33:23 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-07-29 16:54:19 +0300
commit97f2c393c122409f1c90234935a8ebbca962cb44 (patch)
tree3571288ff0c282ab93d7e1f1721436d9885183a0 /core/templates/404.php
parent954b5d9019263b8d11cd61c858942f9eee78421d (diff)
downloadnextcloud-server-97f2c393c122409f1c90234935a8ebbca962cb44.tar.gz
nextcloud-server-97f2c393c122409f1c90234935a8ebbca962cb44.zip
Allow apps to have own 404 content, closes #3225
Diffstat (limited to 'core/templates/404.php')
-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; ?>