mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +01:00
allow - in theme names
This commit is contained in:
parent
a98ed49ee5
commit
123928cdad
2
mod.php
2
mod.php
@ -324,7 +324,7 @@
|
||||
'mod'=>true
|
||||
)
|
||||
);
|
||||
} elseif(preg_match('/^\/themes\/(\w+)\/rebuild$/', $query, $match)) {
|
||||
} elseif(preg_match('/^\/themes\/([\w\-]+)\/rebuild$/', $query, $match)) {
|
||||
if(!hasPermission($config['mod']['themes'])) error($config['error']['noaccess']);
|
||||
|
||||
rebuildTheme($match[1], 'all');
|
||||
|
Loading…
Reference in New Issue
Block a user