浏览代码

cleanup & comment

andre 7 月之前
父节点
当前提交
7af7ab63d8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/SiteController.php

+ 1 - 1
controllers/SiteController.php

@@ -207,7 +207,7 @@ class SiteController {
 
     public static function disable($data): void {
         $domain = $data['domain'] ?? '';
-
+        if ($GLOBALS['debug'] == true) { error_log("Disable site : " . $domain); }
         if (empty($domain)) {
             http_response_code(400);
             echo json_encode(['error' => 'Missing required parameter: domainname']);