mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Using new browser class to hopefully fix IE
This commit is contained in:
parent
cdf93f7ee7
commit
0c542fc251
@ -14,6 +14,7 @@
|
||||
|
||||
$phpgw_info["flags"]["currentapp"] = "addressbook";
|
||||
$phpgw_info["flags"]["enable_contacts_class"] = True;
|
||||
$phpgw_info["flags"]["enable_browser_class"] = True;
|
||||
include("../header.inc.php");
|
||||
|
||||
//$sep = $phpgw_info["server"]["dir_separator"];
|
||||
@ -163,9 +164,18 @@
|
||||
fclose($fp);
|
||||
$buffer = $this->import_end_file($buffer,$private,$cat_id);
|
||||
|
||||
if ($phpgw->browser->get_agent() == "IE") // && browser_get_version() == "5.5")
|
||||
{
|
||||
$attachment = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
$attachment = " attachment;";
|
||||
}
|
||||
|
||||
if ($download == "") {
|
||||
if($conv_type=="Debug LDAP" || $conv_type=="Debug SQL" ) {
|
||||
header("Content-disposition: attachment; filename=\"conversion.txt\"");
|
||||
header("Content-disposition:".$attachment." filename=\"conversion.txt\"");
|
||||
header("Content-type: application/octetstream");
|
||||
header("Content-length: ".strlen($buffer));
|
||||
header("Pragma: no-cache");
|
||||
|
Loading…
Reference in New Issue
Block a user