summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/public.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-05 14:27:38 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-05 14:27:38 +0200
commitaf983b843d1335917f4a702cea6d91d28bab68e9 (patch)
tree692e6e4090ef282b597b9b69d2abd53262cf47a0 /apps/files_sharing/public.php
parent554b1990e23c76aea182e9b8c2687f8f8b939fb9 (diff)
parent0fce89308e2fbcb44a2091ca67f373ba89ee068e (diff)
downloadnextcloud-server-af983b843d1335917f4a702cea6d91d28bab68e9.tar.gz
nextcloud-server-af983b843d1335917f4a702cea6d91d28bab68e9.zip
fix merge conflicts
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r--apps/files_sharing/public.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 650fa6a7c27..b3d713097d2 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -237,6 +237,12 @@ 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');
+OCP\Util::addStyle('files_sharing', '404');
$tmpl = new OCP\Template('', '404', 'guest');
+$tmpl->assign('content', $errorContent);
$tmpl->printPage();