mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-18 17:14:04 +01:00
allow - in theme names
This commit is contained in:
parent
e962869298
commit
caf1de03e5
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…
x
Reference in New Issue
Block a user