dever 6 years ago
parent
commit
b3d1f7cfc5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Img.php

+ 1 - 1
lib/Img.php

@@ -61,7 +61,7 @@ class Img
 
         }
 
-        $host = str_replace(DEVER_APP_NAME . '/', '', Dever::config('host')->base);
+        $host = str_replace(DEVER_PROJECT . '/' . DEVER_APP_NAME . '/', '', Dever::config('host')->base);
         if (strstr($file, '/share/dc/data/')) {
             return $host . str_replace('/share/dc/data/', '', $file);
         }