fly_indiz
Active member
- Affected version
- 2.2
When scheduled tasks runs at Server Trigger (OS system cron) email template broken with incorrect logo URL.
This is cause in Templater function base_url (fnBaseUrl) return incorrect url
fnBaseUrl get base url from request.pather which get it from $container['request.paths']
It is possible other similar bugs are present.
P.S. i already posted similar problem, but it not fully fixed, only partially:
Small suggest variant to fix:
In src/XF/App.php, after string:
add:
but this fix will work only if canonical url is correctly set...
HTML:
<img src="http:/data/assets/logo/xenforo-logo.png" alt="Forum" width="" height="" class="" style="max-height: 200px; vertical-align: bottom;">
This is cause in Templater function base_url (fnBaseUrl) return incorrect url
fnBaseUrl get base url from request.pather which get it from $container['request.paths']
It is possible other similar bugs are present.
P.S. i already posted similar problem, but it not fully fixed, only partially:
Fixed - watched therad notifify-mail template bug
When receive email with notification about new post in watched thread with message preview which contains attached image - in webmail client image not viewed because image-link is relative. For example: It is necessary to create the absolute link to preview mini-image Affected template...
xenforo.com
Small suggest variant to fix:
In src/XF/App.php, after string:
PHP:
$fullPath = $request->getFullBasePath();
PHP:
if (!$request->getHost() && preg_match('#^(/|[a-z]+:)#i', $options->boardUrl))
{
$fullPath = $options->boardUrl;
}
Last edited: