1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 13:21:54 +02:00

Forum SEF Url fixes

This commit is contained in:
Cameron
2016-05-24 12:39:45 -07:00
parent 989fc5ccd1
commit 0b96543a1a
4 changed files with 25 additions and 21 deletions

View File

@@ -73,21 +73,23 @@ class forum_url // plugin-folder + '_url'
);
*/
$config['forum'] = array(
'regex' => '^forum/([^\/]*)/?\??([^\/]*)?$',
'sef' => 'forum/{forum_sef}',
'redirect' => '{e_PLUGIN}forum/forum_viewforum.php?sef=$1&$2',
'legacy' => '{e_PLUGIN}forum/forum_viewforum.php?id={forum_id}'
);
$config['index'] = array(
'regex' => '^forum/?$', // matched against url, and if true, redirected to 'redirect' below.
'regex' => '^forum\/?$', // matched against url, and if true, redirected to 'redirect' below.
'sef' => 'forum', // used by e107::url(); to create a url from the db table.
'redirect' => '{e_PLUGIN}forum/forum.php', // file-path of what to load when the regex returns true.
);
$config['forum'] = array(
'regex' => '^forum\/([^\/]*)\/?\??([^\/]*)?$',
'sef' => 'forum/{forum_sef}/',
'redirect' => '{e_PLUGIN}forum/forum_viewforum.php?sef=$1&$2',
'legacy' => '{e_PLUGIN}forum/forum_viewforum.php?id={forum_id}'
);
return $config;
}