From 123928cdadaf9f063d5faf593049ef429da98658 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 15 Dec 2011 02:18:32 +1100 Subject: [PATCH] allow - in theme names --- mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');