Only detect files ending with .css in /css/
This commit is contained in:
parent
77a16d0060
commit
e77493feda
1 changed files with 2 additions and 2 deletions
|
@ -85,8 +85,8 @@ foreach(array_reverse(TITLES_LINEAGE) as $id => $title)
|
|||
echo strip_tags($title) . (array_key_last(TITLES_LINEAGE) === $id ? '' : ' < ');
|
||||
?></title>
|
||||
<?php
|
||||
foreach (array_diff(scandir(CONF['common']['root_path'] . "/css"), array('..', '.')) as $cssPath)
|
||||
echo ' <link type="text/css" rel="stylesheet" media="screen" href="' . CONF['common']['prefix'] . '/css/' . $cssPath . '">' . "\n";
|
||||
foreach (glob('css/*.css') as $cssPath)
|
||||
echo ' <link type="text/css" rel="stylesheet" media="screen" href="' . CONF['common']['prefix'] . '/' . $cssPath . '">' . "\n";
|
||||
?>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue