Visman 1 年之前
父節點
當前提交
a77b4e4ecb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Core/View.php

+ 1 - 1
app/Core/View.php

@@ -168,7 +168,7 @@ class View
         $st = \preg_replace('%\W%', '-', $name);
 
         foreach ($this->other as $hash => $cur) {
-            if (\file_exist($tpl = "{$cur[0]}/{$name}{$this->ext}")) {
+            if (\file_exists($tpl = "{$cur[0]}/{$name}{$this->ext}")) {
                 $php = "{$this->cache}/_{$st}-{$hash}.php";
 
                 if (