Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Use the default back end theme when running in safe mode (see #6505)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Dec 2, 2013
1 parent 6eb94a6 commit 83d8447
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contao/classes/Backend.php
Expand Up @@ -46,6 +46,11 @@ protected function __construct()
*/
public static function getTheme()
{
if ($GLOBALS['TL_CONFIG']['coreOnlyMode'])
{
return 'default'; // see #6505
}

$theme = $GLOBALS['TL_CONFIG']['backendTheme'];

if ($theme != '' && $theme != 'default' && is_dir(TL_ROOT . '/system/themes/' . $theme))
Expand Down

0 comments on commit 83d8447

Please sign in to comment.