diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-07-29 16:33:23 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-07-29 16:54:19 +0300 |
commit | 97f2c393c122409f1c90234935a8ebbca962cb44 (patch) | |
tree | 3571288ff0c282ab93d7e1f1721436d9885183a0 /apps/files_sharing/public.php | |
parent | 954b5d9019263b8d11cd61c858942f9eee78421d (diff) | |
download | nextcloud-server-97f2c393c122409f1c90234935a8ebbca962cb44.tar.gz nextcloud-server-97f2c393c122409f1c90234935a8ebbca962cb44.zip |
Allow apps to have own 404 content, closes #3225
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 3f8e29345a7..6878109f7b9 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -234,6 +234,11 @@ if (isset($path)) { } else { OCP\Util::writeLog('share', 'could not resolve linkItem', \OCP\Util::DEBUG); } + +$errorTemplate = new OCP\Template('files_sharing', 'part.404', ''); +$errorContent = $errorTemplate->fetchPage(); + header('HTTP/1.0 404 Not Found'); $tmpl = new OCP\Template('', '404', 'guest'); +$tmpl->assign('content', $errorContent); $tmpl->printPage(); |