aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2002-01-02 19:55:45 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2002-01-02 19:55:45 +0000
commit95fd5953714a34030371f0a129a153090ded66e4 (patch)
tree38d70c76d86d59d0ea2e7ba2014f8003fbbe42b8
parent6a065ee54f23653bf12309ecad264b64aa214af2 (diff)
downloadforums-95fd5953714a34030371f0a129a153090ded66e4.tar
forums-95fd5953714a34030371f0a129a153090ded66e4.tar.gz
forums-95fd5953714a34030371f0a129a153090ded66e4.tar.bz2
forums-95fd5953714a34030371f0a129a153090ded66e4.tar.xz
forums-95fd5953714a34030371f0a129a153090ded66e4.zip
Allowing old style URLs
git-svn-id: file:///svn/phpbb/trunk@1778 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/viewforum.php6
-rw-r--r--phpBB/viewtopic.php5
2 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 6dd00e48c6..0dac3cad4d 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -31,6 +31,10 @@ if( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_UR
{
$forum_id = ( isset($HTTP_GET_VARS[POST_FORUM_URL]) ) ? intval($HTTP_GET_VARS[POST_FORUM_URL]) : intval($HTTP_POST_VARS[POST_FORUM_URL]);
}
+else if( isset($HTTP_GET_VARS['forum']))
+{
+ $forum_id = $HTTP_GET_VARS['forum'];
+}
else
{
$forum_id = "";
@@ -669,4 +673,4 @@ $template->pparse("body");
//
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
-?> \ No newline at end of file
+?>
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index f8d21fbbec..bc96e31d38 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -32,6 +32,11 @@ if(isset($HTTP_GET_VARS[POST_TOPIC_URL]))
{
$topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
}
+else if(isset($HTTP_GET_VARS['topic']))
+{
+ $topic_id = intval($HTTP_GET_VARS['topic']);
+}
+
if(isset($HTTP_GET_VARS[POST_POST_URL]))
{
$post_id = intval($HTTP_GET_VARS[POST_POST_URL]);