From d7341ef085235df6bc585282755e1bea9a8f1ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D0=B3=D0=B4=D0=B0=D0=BD=20=D0=A1=D1=82=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D1=86=D1=8C=D0=BA=D0=B8=D0=B9?= Date: Fri, 25 Aug 2017 14:23:41 +0300 Subject: [PATCH] * fix for Class Path. Or it makes impossible to use sub-folders for Windows users --- ActiveRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActiveRecord.php b/ActiveRecord.php index 084587547..e340484de 100644 --- a/ActiveRecord.php +++ b/ActiveRecord.php @@ -43,7 +43,7 @@ function activerecord_autoload($class_name) $root .= DIRECTORY_SEPARATOR . implode($directories, DIRECTORY_SEPARATOR); } - $file = "$root/$class_name.php"; + $file = "$root" . DIRECTORY_SEPARATOR . "$class_name.php"; if (file_exists($file)) require_once $file;