From 8a6edd46541b47c4989c8666539b2c1ce2401c16 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 26 Apr 2011 15:01:16 +0200 Subject: [PATCH] Show currect filename when downloading files --- files/download.php | 1 + lib/base.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/download.php b/files/download.php index f99b8d567e9..f7fbcd0f857 100644 --- a/files/download.php +++ b/files/download.php @@ -44,6 +44,7 @@ if(!OC_FILESYSTEM::file_exists($filename)){ $ftype=OC_FILESYSTEM::getMimeType( $filename ); header('Content-Type:'.$ftype); +header('Content-Disposition: attachment; filename="'.basename($filename).'"'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); diff --git a/lib/base.php b/lib/base.php index acdea093d91..2ed232cff2c 100644 --- a/lib/base.php +++ b/lib/base.php @@ -91,7 +91,7 @@ require_once('plugin.php'); $error=(count(OC_UTIL::checkServer())>0); -if(!$error){ +if(!$error and OC_CONFIG::getValue('installed',false)){ OC_PLUGIN::loadPlugins( "" ); } -- 2.39.5