contao/test — Issue #1244: be_error.tpl lässt sich nicht überschreiben
Author: Toflar
Created: 2011-11-29 07:35:16+00:00
State: open
Labels: Defect, framework

Hi Leo

Offenbar lässt sich das be_error.tpl nicht überschreiben.
Wenn ich ein be_error.tpl in das Verzeichnis templates lege, passiert jedenfalls nichts.
Da steht aber "To customize this notice, create a custom template file named templates/be_error.tpl"

Das Template wird fix in der functions.php ab Zeile 181 eingebunden:

```
/**
* Show a special TYPOlight "what to do in case of an error" message
*/
function show_help_message()
{
if (

![](ini_get('display_errors'))
{
header('HTTP/1.1 500 Internal Server Error');

if(file_exists(TL_ROOT . '/system/modules/backend/templates/be_error.tpl'))
{
include(TL_ROOT . '/system/modules/backend/templates/be_error.tpl');
exit;
}

echo 'An error occurred while executing this script)';
}
}
```

Müsste imho so aussehen:

```
/**
* Show a special TYPOlight "what to do in case of an error" message
*/
function show_help_message()
{
if (

![](ini_get('display_errors'))
{
header('HTTP/1.1 500 Internal Server Error');

if(file_exists(TL_ROOT . '/templates/be_error.tpl'))
{
include(TL_ROOT . '/templates/be_error.tpl');
exit;
}

if(file_exists(TL_ROOT . '/system/modules/backend/templates/be_error.tpl'))
{
include(TL_ROOT . '/system/modules/backend/templates/be_error.tpl');
exit;
}

echo 'An error occurred while executing this script)';
}
}
```

Danke für's Prüfen!

--- _Originally created on December 6th, 2009, at 02:29pm (ID 1244)_