Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
d4df1f4a
Commit
d4df1f4a
authored
Nov 11, 2009
by
Nigel McNie
Browse files
Wrap apache_setenv calls in function_exists for people not using PHP as an apache module.
Signed-off-by:
Nigel McNie
<
nigel@catalyst.net.nz
>
parent
c75a5c43
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/extract-progress.php
View file @
d4df1f4a
...
@@ -33,8 +33,10 @@ if (!$unzip = $SESSION->get('unzip')) {
...
@@ -33,8 +33,10 @@ if (!$unzip = $SESSION->get('unzip')) {
redirect
(
'/artefact/file/'
);
redirect
(
'/artefact/file/'
);
}
}
// Turn off gzip if it's on, because it prevents output from being flushed
if
(
function_exists
(
'apache_setenv'
))
{
apache_setenv
(
'no-gzip'
,
1
);
// Turn off gzip if it's on, because it prevents output from being flushed
apache_setenv
(
'no-gzip'
,
1
);
}
$stylesheets
=
array_reverse
(
$THEME
->
get_url
(
'style/style.css'
,
true
));
$stylesheets
=
array_reverse
(
$THEME
->
get_url
(
'style/style.css'
,
true
));
?>
?>
...
...
htdocs/export/download.php
View file @
d4df1f4a
...
@@ -37,8 +37,10 @@ if ($exportfile = $SESSION->get('exportfile')) {
...
@@ -37,8 +37,10 @@ if ($exportfile = $SESSION->get('exportfile')) {
exit
;
exit
;
}
}
// Turn off gzip if it's on, because it prevents output from being flushed
if
(
function_exists
(
'apache_setenv'
))
{
apache_setenv
(
'no-gzip'
,
1
);
// Turn off gzip if it's on, because it prevents output from being flushed
apache_setenv
(
'no-gzip'
,
1
);
}
if
(
!
$exportdata
=
$SESSION
->
get
(
'exportdata'
))
{
if
(
!
$exportdata
=
$SESSION
->
get
(
'exportdata'
))
{
redirect
(
'/export/'
);
redirect
(
'/export/'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment