Skip to content
Snippets Groups Projects
Commit 8a6edd46 authored by Robin Appelman's avatar Robin Appelman
Browse files

Show currect filename when downloading files

parent cb8c8905
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
......@@ -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( "" );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment