summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-18 13:16:32 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-04-18 13:16:49 +0200
commit7684585f49df8d83f3b1677279b5a13f61282a1f (patch)
tree52f3819f3cc2f90535256cf3f9261377cfb780c7 /lib/files.php
parent5896fbd91005cd523bbcbae8a65eb7ce159edc95 (diff)
downloadnextcloud-server-7684585f49df8d83f3b1677279b5a13f61282a1f.tar.gz
nextcloud-server-7684585f49df8d83f3b1677279b5a13f61282a1f.zip
404 error page
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/files.php b/lib/files.php
index 642a7e72049..58bb04ec346 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -146,7 +146,10 @@ class OC_FILES {
}
}elseif($zip or !OC_FILESYSTEM::file_exists($filename)){
header("HTTP/1.0 404 Not Found");
- die('404 Not Found');
+ $tmpl = new OC_TEMPLATE( '', '404', 'guest' );
+ $tmpl->assign('file',$filename);
+ $tmpl->printPage();
+// die('404 Not Found');
}else{
header("HTTP/1.0 403 Forbidden");
die('403 Forbidden');