__dir__ -> __DIR__

This commit is contained in:
Hide_D committed 2020-03-28 19:48:09 +09:00
1 parent baba2d34dd
commit 8f95d4b279
51 files changed
+109 -109

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ class Setting
if (!file_exists($this->basepath) || !is_dir($this->basepath)) {
return false;
}
$templates = new \League\Plates\Engine(__dir__.'/templates');
$templates = new \League\Plates\Engine(__DIR__.'/templates');
//TODO: .htaccess가 서버 오픈에도 사용될 수 있으니 별도의 방법이 필요함
$allow_ip = Util::get_client_ip(false);
if (Util::starts_with($allow_ip, '192.168.') ||