]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/pochePictures.php
Merge branch 'master' into dev
[github/wallabag/wallabag.git] / inc / poche / pochePictures.php
index 26bf07063af0b7006fc468863fde1712a2197745..52394c703b1130fb73bbd9aa8807f17b89a574a0 100644 (file)
 
 final class Picture
 {
-    private function __construct()
-    {
-
-    }
-
     /**
      * Changing pictures URL in article content
      */
@@ -38,7 +33,7 @@ final class Picture
                 }
 
                 if (self::_downloadPictures($absolute_path, $fullpath) === true) {
-                    $content = str_replace($matches[$i][2], $fullpath, $content);
+                    $content = str_replace($matches[$i][2], Tools::getPocheUrl() . $fullpath, $content);
                 }
 
                 $processing_pictures[] = $absolute_path;