Remove code for MSIE 6
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
f006408ffa
commit
1a23eccd2b
@ -135,16 +135,9 @@ class Config
|
||||
$this->set('OBGzip', false);
|
||||
}
|
||||
|
||||
// disable output-buffering (if set to 'auto') for IE6, else enable it.
|
||||
// enable output-buffering (if set to 'auto')
|
||||
if (strtolower($this->get('OBGzip')) == 'auto') {
|
||||
if ($this->get('PMA_USR_BROWSER_AGENT') == 'IE'
|
||||
&& $this->get('PMA_USR_BROWSER_VER') >= 6
|
||||
&& $this->get('PMA_USR_BROWSER_VER') < 7
|
||||
) {
|
||||
$this->set('OBGzip', false);
|
||||
} else {
|
||||
$this->set('OBGzip', true);
|
||||
}
|
||||
$this->set('OBGzip', true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -162,7 +162,7 @@ class ConfigTest extends PMATestCase
|
||||
$this->object->set('PMA_USR_BROWSER_AGENT', 'IE');
|
||||
$this->object->set('PMA_USR_BROWSER_VER', 6);
|
||||
$this->object->checkOutputCompression();
|
||||
$this->assertFalse($this->object->get("OBGzip"));
|
||||
$this->assertTrue($this->object->get("OBGzip"));
|
||||
|
||||
$this->object->set('OBGzip', 'auto');
|
||||
$this->object->set('PMA_USR_BROWSER_AGENT', 'MOZILLA');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user