Browse Source

allow - in theme names

pull/40/head
Savetheinternet 13 years ago
parent
commit
a98ed49ee5
  1. 2
      mod.php

2
mod.php

@ -352,7 +352,7 @@
'mod'=>true
)
);
} elseif(preg_match('/^\/themes(\/(\w+))?$/', $query, $match)) {
} elseif(preg_match('/^\/themes(\/([\w\-]+))?$/', $query, $match)) {
if(!hasPermission($config['mod']['themes'])) error($config['error']['noaccess']);
if(!is_dir($config['dir']['themes']))

Loading…
Cancel
Save