// Fix weird bug with some hosting

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17606 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-09-28 12:25:01 +00:00
parent f5bad733a5
commit fdf7bf6aeb
2 changed files with 1 additions and 17 deletions
-16
View File
@@ -2104,22 +2104,6 @@ FileETag INode MTime Size
return true;
}
}
else
{
if (function_exists('phpinfo'))
{
// If apache_get_modules does not exists,
// we parse phpinfo(INFO_MODULES) return string
ob_start();
phpinfo(INFO_MODULES);
$phpinfo = ob_get_contents();
ob_end_clean();
if (strpos($phpinfo, $name) !== false)
return true;
}
// otherwise, use the default behavior
// see return value at the end of the function
}
return false;
}