зеркало из https://github.com/nextcloud/news.git
Slim down app.php because php 7 already turns errors into exceptions and php 5.6, well whatever :D
This commit is contained in:
Родитель
7ed353ded8
Коммит
3e4d3fdffb
|
@ -13,16 +13,6 @@
|
|||
|
||||
namespace OCA\News\AppInfo;
|
||||
|
||||
use Exception;
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
|
||||
// Turn all errors into exceptions to combat shitty library behavior
|
||||
set_error_handler(function ($code, $message) {
|
||||
if ($code === E_ERROR || $code === E_USER_ERROR) {
|
||||
throw new Exception($message, $code);
|
||||
}
|
||||
});
|
||||
|
||||
(new Application)->registerConfig();
|
||||
|
|
Загрузка…
Ссылка в новой задаче