Remove condition for an existing theme,
since a default configuration is always set.
Even if this would not be the case, would
the current fallback try to load a non-existing
theme called "default".
So remove this whole block.
else
$web_root = $cfg['web_root'];
else
$web_root = $cfg['web_root'];
-if (!isset ($cfg['style']))
- $style = 'default';
-else
- $style = $cfg['style'];
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo (true === empty($cfg['title']))? t('Jirafeau, your web file repository') : $cfg['title']; ?></title>
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo (true === empty($cfg['title']))? t('Jirafeau, your web file repository') : $cfg['title']; ?></title>
- <link href="<?php echo $web_root . 'media/' . $style . '/style.css.php'; ?>" rel="stylesheet" type="text/css" />
+ <link href="<?php echo $web_root . 'media/' . $cfg['style'] . '/style.css.php'; ?>" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript" src="lib/functions.js.php"></script>
</head>
<body>
<script type="text/javascript" src="lib/functions.js.php"></script>