diff --git a/lib/php/UNL/Templates/Version3x1.php b/lib/php/UNL/Templates/Version3x1.php index baf4a00c4b07f731528d41bd28a75d42d42b217b..8a840f0221a5071dd61f48690ab702a321a0155c 100644 --- a/lib/php/UNL/Templates/Version3x1.php +++ b/lib/php/UNL/Templates/Version3x1.php @@ -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)