Bsitu has uploaded a new change for review.
https://gerrit.wikimedia.org/r/51619
Change subject: (bug 45592) Remove unused function
EchoEditFormatter::formatLink()
......................................................................
(bug 45592) Remove unused function EchoEditFormatter::formatLink()
The logic has been moved to somewhere else
Change-Id: Icfedbc173a3a35d9f2431bfa3baf06bb63662112
---
M formatters/EditFormatter.php
1 file changed, 0 insertions(+), 38 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo
refs/changes/19/51619/1
diff --git a/formatters/EditFormatter.php b/formatters/EditFormatter.php
index 5a65310..2770ba9 100644
--- a/formatters/EditFormatter.php
+++ b/formatters/EditFormatter.php
@@ -54,42 +54,4 @@
}
}
- /**
- * Generate links based on output format and passed properties
- * $event EchoEvent
- * $message Message
- * $props array
- */
- private function formatLink( $event, $message, $props = array() ) {
- if ( !$event->getTitle() ) {
- $message->params( wfMessage( 'echo-no-title' )->text()
);
- return;
- }
-
- $title = $event->getTitle();
-
- $param = array();
- if ( isset( $props['param'] ) ) {
- $param = (array)$props['param'];
- }
-
- if ( $this->outputFormat === 'html' || $this->outputFormat ===
'flyout' ) {
- $class = array();
- if ( isset( $props['class'] ) ) {
- $class['class'] = $props['class'];
- }
-
- if ( isset( $props['linkText'] ) ) {
- $linkText = $props['linkText'];
- } else {
- $linkText = htmlspecialchars(
$title->getPrefixedText() );
- }
-
- $message->rawParams( Linker::link( $title, $linkText,
$class, $param ) );
- } elseif ( $this->outputFormat === 'email' ) {
- $message->params( $title->getCanonicalURL( $param ) );
- } else {
- $message->params( $title->getFullURL( $param ) );
- }
- }
}
--
To view, visit https://gerrit.wikimedia.org/r/51619
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icfedbc173a3a35d9f2431bfa3baf06bb63662112
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Bsitu <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits