dever 4 gadi atpakaļ
vecāks
revīzija
aab9c14086
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      lib/Store/Oss.php
  2. 1 1
      lib/Store/Qiniu.php

+ 1 - 1
lib/Store/Oss.php

@@ -49,7 +49,7 @@ class Oss extends Core implements Config
     public function file()
     {
         if ($this->base64 && isset($this->data['local'])) {
-            parse_url($this->data['local'], $data);
+            $data = parse_url($this->data['local']);
             $this->file = $data['path'] . $this->name . $this->ext;
         } else {
             $this->file = $this->path . $this->name . $this->ext;

+ 1 - 1
lib/Store/Qiniu.php

@@ -51,7 +51,7 @@ class Qiniu extends Core implements Config
     public function file()
     {
         if ($this->base64 && isset($this->data['local'])) {
-            parse_url($this->data['local'], $data);
+            $data = parse_url($this->data['local']);
             $this->file = $data['path'] . $this->name . $this->ext;
         } else {
             $this->file = $this->path . $this->name . $this->ext;