// 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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user