UltrasonicNXT has submitted this change and it was merged.

Change subject: Fix a few new 2.0 bugs
......................................................................


Fix a few new 2.0 bugs

Thread paging links were not working correctly
New reply logs were pointing to the forum, not the thread
Thread last post info was returning the posted by user, not the last post
user

Change-Id: I84d6034da39bab201fa3d3d8988d4075e1c586a5
---
M Reply.php
M Thread.php
M WikiForum.php
3 files changed, 5 insertions(+), 6 deletions(-)

Approvals:
  UltrasonicNXT: Verified; Looks good to me, approved



diff --git a/Reply.php b/Reply.php
index f895a43..c4dc671 100644
--- a/Reply.php
+++ b/Reply.php
@@ -395,7 +395,7 @@
                $shortText = $wgLang->truncate( $text, 50 );
                $logEntry->setComment( $shortText );
                $logEntry->setParameters( array(
-                               '4::thread-name' => 
$thread->getForum()->getName(),
+                               '4::thread-name' => $thread->getName(),
                ) );
                $logid = $logEntry->insert();
                if ( $wgWikiForumLogInRC ) {
diff --git a/Thread.php b/Thread.php
index 713d488..27131bb 100644
--- a/Thread.php
+++ b/Thread.php
@@ -96,7 +96,7 @@
                if ( $this->getReplyCount() > 0 ) {
                        return WikiForumGui::showByInfo(
                                $this->data->wft_last_post_timestamp,
-                               $this->getPostedBy()
+                               WikiForumClass::getUserFromDB( 
$this->data->wft_last_post_user, $this->data->wft_last_post_user_ip )
                        );
                } else {
                        return '';
@@ -617,11 +617,10 @@
                                __METHOD__
                        );
                        $output .= WikiForumGui::showFooterRow(
-                               $maxPerPage,
+                               $limit_page,
                                $countReplies->count,
                                $maxPerPage,
-                               $this->getForum()->getId(),
-                               $this->getId()
+                               array( 'thread' => $this->getId() )
                        );
                }
 
diff --git a/WikiForum.php b/WikiForum.php
index a28967b..ec3abfa 100644
--- a/WikiForum.php
+++ b/WikiForum.php
@@ -35,7 +35,7 @@
        'path' => __FILE__,
        'name' => 'WikiForum',
        'author' => array( 'Michael Chlebek', 'Jack Phoenix', 'Adam Carter 
(UltrasonicNXT)' ),
-       'version' => '2.0.1',
+       'version' => '2.0.2',
        'url' => 'https://www.mediawiki.org/wiki/Extension:WikiForum',
        'descriptionmsg' => 'wikiforum-desc'
 );

-- 
To view, visit https://gerrit.wikimedia.org/r/125698
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I84d6034da39bab201fa3d3d8988d4075e1c586a5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiForum
Gerrit-Branch: master
Gerrit-Owner: UltrasonicNXT <[email protected]>
Gerrit-Reviewer: UltrasonicNXT <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to