summaryrefslogtreecommitdiff
path: root/lookup_inc.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-03-07 20:08:29 +0000
committerChristian Fowler <spider@viovio.com>2007-03-07 20:08:29 +0000
commit455f681260a4e02e36024ea030f36f807fef8733 (patch)
tree7dd9c9ddecd9f003c975a5472f24d7cc825620b2 /lookup_inc.php
parent2747ed9351e7b2d15cd4cc11749c175ae77ed21a (diff)
downloadboards-455f681260a4e02e36024ea030f36f807fef8733.tar.gz
boards-455f681260a4e02e36024ea030f36f807fef8733.tar.bz2
boards-455f681260a4e02e36024ea030f36f807fef8733.zip
add handling of migrate_topic_id to keep old forum links intact
Diffstat (limited to 'lookup_inc.php')
-rw-r--r--lookup_inc.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lookup_inc.php b/lookup_inc.php
index 1d10416..eacb33d 100644
--- a/lookup_inc.php
+++ b/lookup_inc.php
@@ -17,12 +17,11 @@ if( @BitBase::verifyId( $_REQUEST['t'] ) ) {
} elseif( @BitBase::verifyId( $_REQUEST['p'] ) ) {
$gContent = new BitBoardPost( $_REQUEST['p'] );
} elseif( @BitBase::verifyId( $_REQUEST['b'] ) ) {
-
$gContent = new BitBoard( $_REQUEST['b'] );
} elseif (isset($_REQUEST['p'])) {
$gContent = new BitBoardPost();
// otherwise create new object
-} elseif (isset($_REQUEST['t'])) {
+} elseif( isset( $_REQUEST['t'] ) || isset( $_REQUEST['migrate_topic_id'] ) ) {
$gContent = new BitBoardTopic();
} else {
$gContent = new BitBoard();
@@ -31,4 +30,4 @@ if( @BitBase::verifyId( $_REQUEST['t'] ) ) {
$gContent->load();
$gBitSmarty->assign_by_ref( "gContent", $gContent );
-?> \ No newline at end of file
+?>