Skip to content
Snippets Groups Projects
Commit f48e16ab authored by Gerrit Uitslag's avatar Gerrit Uitslag
Browse files

reload some config settings after the conf reset in DokuWikiTest::setUp

parent 42a2fb23
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,15 @@ abstract class DokuWikiTest extends PHPUnit_Framework_TestCase {
}
}
}
// reload some settings
$conf['gzip_output'] &= (strpos($_SERVER['HTTP_ACCEPT_ENCODING'],'gzip') !== false);
if($conf['compression'] == 'bz2' && !DOKU_HAS_BZIP) {
$conf['compression'] = 'gz';
}
if($conf['compression'] == 'gz' && !DOKU_HAS_GZIP) {
$conf['compression'] = 0;
}
// make real paths and check them
init_paths();
init_files();
......
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