From 6ef62012be3843e967a7081111023a5ce79a1ff3 Mon Sep 17 00:00:00 2001
From: efalcy <efalcy@afi-sa.fr>
Date: Thu, 23 Oct 2014 18:57:28 +0200
Subject: [PATCH] dev #15527 : fix display image plan

---
 library/Class/Plan.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Class/Plan.php b/library/Class/Plan.php
index 138f85615bc..d033922ee2c 100644
--- a/library/Class/Plan.php
+++ b/library/Class/Plan.php
@@ -68,7 +68,7 @@ class Class_Plan extends Storm_Model_Abstract {
 
 		$img = "photobib/plans/".$this->getImage();
 
-		if(!self::getFileSystem()->file_exists( ROOT_PATH . '/userfiles/'.$img))
+		if(!self::getFileSystem()->file_exists( $this->getImageServerPath().$this->getImage()))
 			return '';
 
 		return USERFILESURL . $img;
-- 
GitLab