vali 6 年之前
父節點
當前提交
d0f1d304f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vendor/GatewayWorker_windows/Applications/whisper/Events.php

+ 1 - 1
vendor/GatewayWorker_windows/Applications/whisper/Events.php

@@ -42,7 +42,7 @@ class Events
     {
         if (empty(self::$db)) {
             $mds = DIRECTORY_SEPARATOR;
-            if (strtolower(subtr(PHP_OS, 0, 3)) == 'win') {
+            if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
                 $dbcfg = realpath(dirname(__FILE__) . $mds . '..' . $mds . '..' . $mds . '..' . $mds . '..') . $mds . 'application' . $mds . 'database.php';
             } else {
                 $dbcfg = realpath(dirname(__FILE__) . $mds . '..' . $mds . '..' . $mds . '..' . $mds . '..' . $mds . '..') . $mds . 'application' . $mds . 'database.php';