From b0fae1bef56aeef4a125a537ab4394531ceb2799 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Thu, 26 Sep 2013 21:50:43 +0300 Subject: [PATCH] 404 page for broken links --- public.php | 2 +- templates/public.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/public.php b/public.php index 0e936aa2..002e915e 100644 --- a/public.php +++ b/public.php @@ -40,7 +40,7 @@ if (isset($fileOwner)) { \OCP\Util::addScript('documents', 'documents'); $tmpl->assign('document', $token); } else { - // TODO: show nice 404 page + $tmpl->assign('notFound', true); } $tmpl->printPage(); diff --git a/templates/public.php b/templates/public.php index 5d5edba1..eb0e478a 100644 --- a/templates/public.php +++ b/templates/public.php @@ -1,5 +1,12 @@ +
+ +
+ +
+
t('This link has been expired or is never existed. Please contact the person who shared it with you for details.')) ?>
+