mirror of
https://github.com/flarum/core.git
synced 2025-08-03 23:17:43 +02:00
chore: ignore deprecation errors in prod (#4072)
This commit is contained in:
@@ -31,8 +31,16 @@ class Site
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$config = static::loadConfig($paths->base);
|
||||||
|
|
||||||
|
ini_set('display_errors', 0);
|
||||||
|
|
||||||
|
if (! $config->inDebugMode() && function_exists('error_reporting')) {
|
||||||
|
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
new InstalledSite($paths, static::loadConfig($paths->base))
|
new InstalledSite($paths, $config)
|
||||||
)->extendWith(static::loadExtenders($paths->base));
|
)->extendWith(static::loadExtenders($paths->base));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user