refine a little the style detection. re #25

This commit is contained in:
Sébastien Lucas 2013-06-04 20:56:37 +02:00
parent b0a8b6439a
commit 28314fe83d

View file

@ -66,7 +66,7 @@
<h2>Style</h2>
<h4><select id="style" onchange="updateCookie (this);">
<?php
foreach (glob ("styles/*.css") as $filename) {
foreach (glob ("styles/style-*.css") as $filename) {
if (preg_match ('/styles\/style-(.*?)\.css/', $filename, $m)) {
$filename = $m [1];
}