__dir__ -> __DIR__

This commit is contained in:
2020-03-28 19:48:09 +09:00
parent d922993eaf
commit 9a67ac7509
51 changed files with 109 additions and 109 deletions
+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.') ||