Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c75c66d authored by Pierre-Alain Bandinelli's avatar Pierre-Alain Bandinelli
Browse files

Attempt to fix #201

parent 021bd03c
Loading
Loading
Loading
Loading
+11 −2
Original line number Original line Diff line number Diff line
@@ -577,9 +577,18 @@ class Utils
				}
				}
			}
			}
		}
		}
		/*Now trying to detect the apps folder to give the right URL for assets */
		$re = '/\/([a-zA-Z0-9-_]*)\/rainloop\/app\//m';
		$str = __FILE__;
		preg_match($re, $str, $matches);


		if ($matches[1] == "apps") {
			return $sAppPath;
			return $sAppPath;
		} else {
			return str_replace("/apps/rainloop/app", "/".$matches[1]."/rainloop/app", $sAppPath);
		}
		}
	}
	
	/**
	/**
	 * @return string
	 * @return string
	 */
	 */