Skip to content
Snippets Groups Projects
Commit 7873dd24 authored by Brett Bieber's avatar Brett Bieber
Browse files

Hotfix directory path

parent 61cb9719
Branches
Tags
No related merge requests found
......@@ -38,7 +38,7 @@ class UNL_Templates_Version3x1 implements UNL_Templates_Version
UNL_Templates::debug('ERROR You should have a local copy of wdn/templates_3.1!'
. ' Overriding your specified template to use absolute references' ,
'getTemplate', 1);
$template = 'Absolute.tpl';
$template = 'Local.tpl';
}
// Always try and retrieve the latest
......@@ -47,11 +47,12 @@ class UNL_Templates_Version3x1 implements UNL_Templates_Version
return $tpl;
}
if (file_exists(UNL_Templates::getDataDir().'/tpl_cache/Version3x1/'.$template)) {
return file_get_contents(UNL_Templates::getDataDir().'/tpl_cache/Version3x1/'.$template);
$local_file = UNL_Templates::getDataDir().'/tpl_cache/Version3x1/'.$template;
if (file_exists($local_file)) {
return file_get_contents($local_file);
}
throw new Exception('Could not get the template file!');
throw new Exception('Could not get the template file from '.$local_file);
}
function makeIncludeReplacements($html)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment