summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-12-15 02:18:32 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-12-15 02:18:32 +1100
commit123928cdadaf9f063d5faf593049ef429da98658 (patch)
tree27431c86a5c8cdeb061f889d4de530e216309121 /mod.php
parenta98ed49ee5d3ce709fa018bb4a6f7f8cfdde780a (diff)
allow - in theme names
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index 10d2949e..bb0b3652 100644
--- a/mod.php
+++ b/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');