Severin Anatoliy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/127207
Change subject: fix copy-past-mistakes
......................................................................
fix copy-past-mistakes
code uses variable instead $this, call missing functions
Change-Id: Ib44f9c1c0d2c327663939f2b5a0e150a480b55cb
---
M Category.php
M Forum.php
M Thread.php
3 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiForum
refs/changes/07/127207/1
diff --git a/Category.php b/Category.php
index 1a0d140..e567b5c 100644
--- a/Category.php
+++ b/Category.php
@@ -311,7 +311,7 @@
* @return string: HTML
*/
function sortDown() {
- return $this->sort();
+ return $this->sort( false );
}
/**
@@ -492,4 +492,4 @@
$params = array( 'wfaction' => 'savenewforum', 'category' =>
$this->getId() );
return WFForum::showForm( $params, wfMessage(
'wikiforum-forum-preload' )->text(), '', '', false, wfMessage(
'wikiforum-add-forum' )->text() );
}
-}
\ No newline at end of file
+}
diff --git a/Forum.php b/Forum.php
index 2f1caca..1a63b5c 100644
--- a/Forum.php
+++ b/Forum.php
@@ -375,7 +375,7 @@
__METHOD__
);
- return $this->getForum()->show();
+ return $this->show();
}
/**
@@ -700,4 +700,4 @@
function showFooterRow( $page, $limit ) {
return WikiForumGui::showFooterRow( $page,
$this->getThreadCount(), $limit, array( 'forum' => $this->getId() ) );
}
-}
\ No newline at end of file
+}
diff --git a/Thread.php b/Thread.php
index be6a6f1..74fe56b 100644
--- a/Thread.php
+++ b/Thread.php
@@ -484,7 +484,7 @@
)
) {
$error = WikiForumClass::showErrorMessage(
'wikiforum-error-general', 'wikiforum-error-no-rights' );
- return $error . $thread->show();
+ return $error . $this->show();
}
$dbw = wfGetDB( DB_MASTER );
@@ -963,4 +963,4 @@
);
}
-}
\ No newline at end of file
+}
--
To view, visit https://gerrit.wikimedia.org/r/127207
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib44f9c1c0d2c327663939f2b5a0e150a480b55cb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiForum
Gerrit-Branch: master
Gerrit-Owner: Severin Anatoliy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits