R
ragtek
Guest
As you see the last / is missing....
Possible fix:
then it's working in the acp, but in the frontend the url is:
Possible fix:
Rich (BB code):
protected function processJsUrls(array $jsFiles)
{
// add version number to each required file
foreach ($jsFiles AS &$file)
{
$file = $file . (strpos($file, '?') ? '&' : '?') . '_v=' . XenForo_Application::$jsVersion;
}
// source XenForo JS from 'js/xenforo/x/' if required
switch (XenForo_Application::get('options')->uncompressedJs)
{
case 1:
$jsFiles = str_replace('js/xenforo/', 'js/xenforo/full/', $jsFiles);
break;
case 2:
$jsFiles = str_replace('js/xenforo', 'js/xenforo/min/', $jsFiles);
break;
}
// handle custom JS URL
return preg_replace('#^js/#', XenForo_Application::$javaScriptUrl . '/', $jsFiles);
}
then it's working in the acp, but in the frontend the url is: