1
0
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:
Savetheinternet 2011-12-15 02:18:32 +11:00
parent e962869298
commit caf1de03e5

View File

@ -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');