]> BookStack Code Mirror - bookstack/blobdiff - app/Uploads/ImageService.php
Replaced use of custom 'baseUrl' helper with 'url'
[bookstack] / app / Uploads / ImageService.php
index ae1c6a254786c1c00fd010e181a0970bcc38d238..860230d00f914169969e40d00efdca77e6f0845d 100644 (file)
@@ -417,7 +417,7 @@ class ImageService extends UploadService
         $isLocal = strpos(trim($uri), 'http') !== 0;
 
         // Attempt to find local files even if url not absolute
-        $base = baseUrl('/');
+        $base = url('/');
         if (!$isLocal && strpos($uri, $base) === 0) {
             $isLocal = true;
             $uri = str_replace($base, '', $uri);
@@ -474,7 +474,7 @@ class ImageService extends UploadService
             $this->storageUrl = $storageUrl;
         }
 
-        $basePath = ($this->storageUrl == false) ? baseUrl('/') : $this->storageUrl;
+        $basePath = ($this->storageUrl == false) ? url('/') : $this->storageUrl;
         return rtrim($basePath, '/') . $filePath;
     }
 }