Permalink
Browse files

BUGFIX Installer bug where apache_get_modules() doesn't exist (instal…

…ling from IIS) (from r101357)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112221 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
sminnee
sminnee committed Oct 13, 2010
1 parent bdb865e commit 432413132abf240569b3c1569700897168f74d55
Showing with 1 addition and 1 deletion.
  1. +1 −1 install.php
View
@@ -594,7 +594,7 @@ function requireApacheModule($moduleName, $testDetails) {
}
function testApacheRewriteExists($moduleName = 'mod_rewrite') {
- if(in_array($moduleName, apache_get_modules())) {
+ if(function_exists('apache_get_modules') && in_array($moduleName, apache_get_modules())) {
return true;
} else {
return false;

0 comments on commit 4324131

Please sign in to comment.