fixed static mail
This commit is contained in:
parent
ecbf179fbb
commit
9e7cbdc00a
|
|
@ -8,8 +8,8 @@
|
||||||
<author>B. Endres</author>
|
<author>B. Endres</author>
|
||||||
<email>endres@systopia.de</email>
|
<email>endres@systopia.de</email>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<releaseDate>2017-09-06</releaseDate>
|
<releaseDate>2017-11-17</releaseDate>
|
||||||
<version>0.5.dev</version>
|
<version>0.5.1.dev</version>
|
||||||
<develStage>dev</develStage>
|
<develStage>dev</develStage>
|
||||||
<compatibility>
|
<compatibility>
|
||||||
<ver>4.4</ver>
|
<ver>4.4</ver>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
+---------------------------------------------------------*/
|
+---------------------------------------------------------*/
|
||||||
|
|
||||||
require_once "config.php";
|
require_once "config.php";
|
||||||
$civiproxy_version = '0.5.dev';
|
$civiproxy_version = '0.5.1.dev';
|
||||||
$civiproxy_logo = "<img src='{$proxy_base}/static/images/proxy-logo.png' alt='SYSTOPIA Organisationsberatung'></img>";
|
$civiproxy_logo = "<img src='{$proxy_base}/static/images/proxy-logo.png' alt='SYSTOPIA Organisationsberatung'></img>";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -97,7 +97,7 @@ function civiproxy_redirect($url_requested, $parameters) {
|
||||||
* so they will point to this proxy instead
|
* so they will point to this proxy instead
|
||||||
*/
|
*/
|
||||||
function civiproxy_mend_URLs(&$string) {
|
function civiproxy_mend_URLs(&$string) {
|
||||||
global $target_rest, $target_url, $target_open, $target_file, $target_mail, $proxy_base;
|
global $target_rest, $target_url, $target_open, $target_file, $target_mail, $proxy_base, $target_mosaico;
|
||||||
|
|
||||||
if ($target_rest) {
|
if ($target_rest) {
|
||||||
$string = preg_replace("#{$target_rest}#", $proxy_base . '/rest.php', $string);
|
$string = preg_replace("#{$target_rest}#", $proxy_base . '/rest.php', $string);
|
||||||
|
|
@ -115,7 +115,9 @@ function civiproxy_mend_URLs(&$string) {
|
||||||
$string = preg_replace("#{$target_file}#", $proxy_base . '/file.php?id=', $string);
|
$string = preg_replace("#{$target_file}#", $proxy_base . '/file.php?id=', $string);
|
||||||
}
|
}
|
||||||
if ($target_mosaico) {
|
if ($target_mosaico) {
|
||||||
$string = preg_replace("#{$target_mosaico}#", $proxy_base . '/mosaico.php?id=', $string);
|
// replace full, and relative URL
|
||||||
|
$string = preg_replace("#{$target_mosaico}#", $proxy_base . '/mosaico.php?id=', $string);
|
||||||
|
$string = preg_replace("#/civicrm/mosaico/img\\?src=#", $proxy_base . '/mosaico.php?id=', $string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue