When a Template that has a space in the name is used in a page, and the space-encoding is +, and there is a URL replacement like ( Plus ) for that character, the template will not be found and instead a link to Template+Plus+Name will be added.
Fixed in the current ZIP. In
vault/class/bbcode/template.php, find:
Code:
$id = $vault->article->fetch($templatename, TEMPLATE_SPACE, VAULT_LANGUAGEID, 'threadid');
Replace with:
Code:
$id = $vault->article->fetch(urldecode($templatename), TEMPLATE_SPACE, VAULT_LANGUAGEID, 'threadid');
Find:
Code:
$fetch['title'] = $vault->string->tolower($vault->encode->encode($fetch['title'], TEMPLATE_SPACE));
Replace with:
Code:
$fetch['title_enc'] = $vault->string->tolower($vault->encode->encode($fetch['title'], TEMPLATE_SPACE));
Find:
Code:
$title = $template_cache[$threadids["$t"]]['title'];
Replace with:
Code:
$title = $template_cache[$threadids["$t"]]['title_enc'];
$title_orig = $template_cache[$threadids["$t"]]['title'];
Find:
Code:
'[' . $tag . '=' . $title . ']' . $args . '[/' . $tag . ']',
Replace with:
Code:
'[' . $tag . '=' . $title_orig . ']' . $args . '[/' . $tag . ']',
Find:
Code:
$text = str_replace(
"<!-- TEMPLATE $title|$instance -->",
Replace with:
Code:
$find = "<!-- TEMPLATE $title|$instance -->";
$title = $vault->url->decode($title);
$text = str_replace(
$find,