diff options
author | Adrian Lang <lang@cosmocode.de> | 2009-11-04 11:01:15 +0100 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2009-11-04 11:01:15 +0100 |
commit | c66972f2cb89e65a8bbf8e39d42e8e479f7eb8dc (patch) | |
tree | 3d20030c333e987b42ff101ec339f2120f9f5883 /lib/exe/indexer.php | |
parent | 1378fb56f6873b93fe002e8aed001e92857b5b5c (diff) | |
download | rpg-c66972f2cb89e65a8bbf8e39d42e8e479f7eb8dc.tar.gz rpg-c66972f2cb89e65a8bbf8e39d42e8e479f7eb8dc.tar.bz2 |
Emit less E_NOTICEs and E_STRICTs
Changes of behaviour are:
* Allow the user name, title & description \e2\80\9c0\e2\80\9d
* Default to Port 443 if using HTTPS
* Set $INFO['isadmin'] and $INFO['ismanager'] to \e2\80\9cfalse\e2\80\9d even if no user is
logged in
* Do not pass empty fragment field in the event data for event
ACTION_SHOW_REDIRECT
* Handle chunked encoding in HTTPClient
darcs-hash:20091104100115-e4919-5cf6397d4a457e3f98a8ca49fbdab03f2147721d.gz
Diffstat (limited to 'lib/exe/indexer.php')
-rw-r--r-- | lib/exe/indexer.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php index b83a9ac60..1c4128eb7 100644 --- a/lib/exe/indexer.php +++ b/lib/exe/indexer.php @@ -20,20 +20,18 @@ define('INDEXER_VERSION', 2); @ignore_user_abort(true); // check if user abort worked, if yes send output early -if(@ignore_user_abort() && !$conf['broken_iua']){ +$defer = !@ignore_user_abort() || $conf['broken_iua']; +if(!$defer){ sendGIF(); // send gif - $defer = false; -}else{ - $defer = true; } $ID = cleanID($_REQUEST['id']); // Catch any possible output (e.g. errors) -if(!$_REQUEST['debug']) ob_start(); +if(!isset($_REQUEST['debug'])) ob_start(); // run one of the jobs -$tmp = array(); +$tmp = array(); // No event data $evt = new Doku_Event('INDEXER_TASKS_RUN', $tmp); if ($evt->advise_before()) { runIndexer() or @@ -45,7 +43,7 @@ if ($evt->advise_before()) { } if($defer) sendGIF(); -if(!$_REQUEST['debug']) ob_end_clean(); +if(!isset($_REQUEST['debug'])) ob_end_clean(); exit; // -------------------------------------------------------------------- @@ -358,7 +356,7 @@ function date_iso8601($int_date) { * @author Harry Fuecks <fuecks@gmail.com> */ function sendGIF(){ - if($_REQUEST['debug']){ + if(isset($_REQUEST['debug'])){ header('Content-Type: text/plain'); return; } |