refine a little the style detection. re #25
This commit is contained in:
parent
b0a8b6439a
commit
28314fe83d
|
@ -66,7 +66,7 @@
|
||||||
<h2>Style</h2>
|
<h2>Style</h2>
|
||||||
<h4><select id="style" onchange="updateCookie (this);">
|
<h4><select id="style" onchange="updateCookie (this);">
|
||||||
<?php
|
<?php
|
||||||
foreach (glob ("styles/*.css") as $filename) {
|
foreach (glob ("styles/style-*.css") as $filename) {
|
||||||
if (preg_match ('/styles\/style-(.*?)\.css/', $filename, $m)) {
|
if (preg_match ('/styles\/style-(.*?)\.css/', $filename, $m)) {
|
||||||
$filename = $m [1];
|
$filename = $m [1];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue