moved no purg on referer code to the correct position

darcs-hash:20081212225011-7ad00-dbd829b7c617cc519735525522c3155df506cb2b.gz
This commit is contained in:
Andreas Gohr 2008-12-12 23:50:11 +01:00
parent b328697d6c
commit 3dea4ebc5f
1 changed files with 3 additions and 3 deletions

View File

@ -33,9 +33,6 @@
error_reporting(DOKU_E_LEVEL);
}
// we don't want a purge URL to be digged
if($_REQUEST['purge'] && $_SERVER['HTTP_REFERER']) unset($_REQUEST['purge']);
// init memory caches
global $cache_revinfo; $cache_revinfo = array();
global $cache_wikifn; $cache_wikifn = array();
@ -154,6 +151,9 @@
// don't let cookies ever interfere with request vars
$_REQUEST = array_merge($_GET,$_POST);
// we don't want a purge URL to be digged
if($_REQUEST['purge'] && $_SERVER['HTTP_REFERER']) unset($_REQUEST['purge']);
// disable gzip if not available
if($conf['compression'] == 'bz2' && !function_exists('bzopen')){
$conf['compression'] = 'gz';