summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2015-03-10 14:22:47 +0100
committerczaks <marcin@6irc.net>2015-03-10 14:22:47 +0100
commitbf1b6103cf6d3cf7f83e85453aad2d03e03e62da (patch)
tree9460a02b2e7629059349fb88cacb1ad54bab1814 /mod.php
parent6c4d3941fa729558f4a5313081c85b0a06202e54 (diff)
parent4bf525599e7c596e7aec7f483664a091ef0db57b (diff)
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod.php b/mod.php
index 384eec88..e06d5db6 100644
--- a/mod.php
+++ b/mod.php
@@ -105,6 +105,11 @@ $pages = array(
str_replace('%d', '(\d+)', preg_quote($config['file_page50'], '!')) => 'view_thread50',
'/(\%b)/' . preg_quote($config['dir']['res'], '!') .
str_replace('%d', '(\d+)', preg_quote($config['file_page'], '!')) => 'view_thread',
+
+ '/(\%b)/' . preg_quote($config['dir']['res'], '!') .
+ str_replace(array('%d','%s'), array('(\d+)', '[a-z0-9-]+'), preg_quote($config['file_page50_slug'], '!')) => 'view_thread50',
+ '/(\%b)/' . preg_quote($config['dir']['res'], '!') .
+ str_replace(array('%d','%s'), array('(\d+)', '[a-z0-9-]+'), preg_quote($config['file_page_slug'], '!')) => 'view_thread',
);