mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fixed open_basedir error
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44665 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e64e218bc7
commit
dd71d6adad
@ -167,7 +167,7 @@ class HTTP {
|
||||
* Load the mime-type data from the system file
|
||||
*/
|
||||
static function loadMimeTypes() {
|
||||
if(file_exists('/etc/mime.types')) {
|
||||
if(@file_exists('/etc/mime.types')) {
|
||||
$mimeTypes = file('/etc/mime.types');
|
||||
foreach($mimeTypes as $typeSpec) {
|
||||
if(($typeSpec = trim($typeSpec)) && substr($typeSpec,0,1) != "#") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user