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

+ 1 - 4
lib/Img.php

@@ -61,13 +61,10 @@ 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);
         }
-        */
         return $host . str_replace(DEVER_PROJECT_PATH, '', $file);
         $file = Dever::pic($file);
         return $file;