فهرست منبع

Update Files.php

Visman 2 سال پیش
والد
کامیت
f9de698fbd
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      app/Core/Files.php

+ 3 - 3
app/Core/Files.php

@@ -894,10 +894,10 @@ class Files
         }
 
         foreach ($this->imageDrivers as $class) {
-            $this->imageDriver = new $class($this);
+            $driver = new $class($this);
 
-            if (true === $this->imageDriver->ready()) {
-                return $this->imageDriver;
+            if (true === $driver->ready()) {
+                return $this->imageDriver = $driver;
             }
         }