From 6e730bc8417ae7e560c549dc5fcb632421332278 Mon Sep 17 00:00:00 2001 From: lopar Date: Mon, 6 Jul 2020 00:27:36 +0300 Subject: [PATCH] =?UTF-8?q?=D1=8D=D0=BA=D1=81=D0=B5=D0=BF=D1=88=D0=BE?= =?UTF-8?q?=D0=BD=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=B8=D1=80=D1=83=D0=B5=D1=82?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D1=83=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.php b/config.php index b2cd3b6..2110ae9 100644 --- a/config.php +++ b/config.php @@ -32,8 +32,10 @@ spl_autoload_register(function ($class_name) { require_once 'classes/' . $class_name; } elseif (file_exists('models/' . $class_name)) { require_once 'models/' . $class_name; + } else { + throw new Exception(sprintf('Невозможно загрузить класс %s',$class_name)); } - throw new Exception(sprintf('Невозможно загрузить класс %s!',$class_name)); + }); /* === Для нападалок. Сперва комнаты в которых нельзя напасть, потом персонаж на которого нельзя напасть. === */