diff --git a/core/app/Subs-Template.php b/core/app/Subs-Template.php
index 5222d3a1..cf394744 100644
--- a/core/app/Subs-Template.php
+++ b/core/app/Subs-Template.php
@@ -1092,7 +1092,7 @@ function db_debug_junk()
*/
function template_include($filename, $once = false)
{
- global $context, $txt, $settings, $boardurl;
+ global $context, $txt, $settings;
global $maintenance, $mtitle, $mmessage;
static $templates = array();
@@ -1141,7 +1141,7 @@ function template_include($filename, $once = false)
$txt['template_parse_error_details'] = 'There was a problem loading the %1$s template or language file. Please check the syntax and try again - remember, single quotes (\') often have to be escaped with a slash (\\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page.';
}
- $txt['template_parse_error_details'] = str_replace('{board_url}', $boardurl, $txt['template_parse_error_details']);
+ $txt['template_parse_error_details'] = str_replace('{board_url}', ROOT, $txt['template_parse_error_details']);
// First, let's get the doctype and language information out of the way.
echo '
@@ -1170,7 +1170,7 @@ function template_include($filename, $once = false)
else
{
loadSource('Class-WebGet');
- $weget = new weget(str_replace(ROOT_DIR, $boardurl, $filename));
+ $weget = new weget(str_replace(ROOT_DIR, ROOT, $filename));
$error = $weget->get();
if (empty($error))