jenkins-bot has submitted this change and it was merged.

Change subject: Fix a few links
......................................................................


Fix a few links

Change-Id: Idb756ed6019986c81bcce7d83490aab8c24fada3
---
M BlogPage.php
1 file changed, 5 insertions(+), 3 deletions(-)

Approvals:
  Jack Phoenix: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/BlogPage.php b/BlogPage.php
index 43276d9..a9b8f19 100644
--- a/BlogPage.php
+++ b/BlogPage.php
@@ -234,7 +234,7 @@
                                        wfMessage( 'blog-and' )-escaped() .
                                        wfMessage( 'word-separator' 
)->escaped();
                        }
-                       $authors .= "<a href=\"{htmlspecialchars( 
$userTitle->getFullURL() )}\">{$author['user_name']}</a>";
+                       $authors .= Linker::link( $userTitle, 
$author['user_name'] );
                }
 
                $output .= $authors;
@@ -277,7 +277,7 @@
                                        wfMessage( 'blog-and' )->escaped() .
                                        wfMessage( 'word-separator' 
)->escaped();
                        }
-                       $authors .= "<a href=\"{htmlspecialchars( 
$userTitle->getFullURL() )}\">{$author['user_name']}</a>";
+                       $authors .= Linker::link( $userTitle, 
$author['user_name'] );
                }
 
                $output = '<div class="multiple-authors-message">' .
@@ -978,7 +978,9 @@
 
                        $output .= '<div class="cod-item">';
                        $output .= "<span 
class=\"cod-score\">{$comment['plus_count']}</span> ";
-                       $output .= " <span class=\"cod-comment\"><a 
href=\"{htmlspecialchars( $page_title->getFullURL() 
)}#comment-{$comment['comment_id']}\" title=\"{$page_title->getText()}\" 
>{$comment_text}</a></span>";
+                       $output .= ' <span class="cod-comment"><a href="' .
+                               htmlspecialchars( $page_title->getFullURL() ) .
+                               "#comment-{$comment['comment_id']}\" 
title=\"{$page_title->getText()}\">{$comment_text}</a></span>";
                        $output .= '</div>';
                }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Idb756ed6019986c81bcce7d83490aab8c24fada3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlogPage
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to