[BUGFIX] Remove redundant style fallback

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.
This commit is contained in:
Dan Untenzu 2017-01-18 17:56:49 +01:00 committed by Jerome Jutteau
parent 75f4119aba
commit 018ba3679f

View File

@ -15,17 +15,13 @@ if (!isset ($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>
<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>