From: Robin Appelman Date: Tue, 26 Apr 2011 13:01:16 +0000 (+0200) Subject: Show currect filename when downloading files X-Git-Tag: v3.0~267^2~558^2~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8a6edd46541b47c4989c8666539b2c1ce2401c16;p=nextcloud-server.git Show currect filename when downloading files --- 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( "" ); }