summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2015-03-10 12:48:59 +0100
committerczaks <marcin@6irc.net>2015-03-10 12:48:59 +0100
commitbdb6001f3f7e93e0b9655c0491bbef6f1df8a5fa (patch)
tree4f4007d1b090694746fc6d36a19dd8accfd3f8ca /mod.php
parenteb245c2970062620f349024922f8c48379ffea88 (diff)
support for slugified links; may introduce a few bugs
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',
);