Page MenuHomePhabricator
Authored By
SomeRandomDeveloper
May 17 2025, 10:01 PM
Size
774 B
Referenced Files
None
Subscribers
None

T394590.diff

diff --git a/includes/WikiCategoryTagCloud.php b/includes/WikiCategoryTagCloud.php
index effc825..d42f52a 100644
--- a/includes/WikiCategoryTagCloud.php
+++ b/includes/WikiCategoryTagCloud.php
@@ -192,9 +192,15 @@ class WikiCategoryTagCloud {
$style .= ';';
}
$style .= "font-size: {$textSize}%;";
- $currentRow = '<a class="' . implode( ' ', $linkClasses ) .
- "\" style=\"{$style}\" href=\"" . $title->getLocalURL() . '">' .
- $title->getText() . '</a>&#160; ';
+ $currentRow = Html::element(
+ 'a',
+ [
+ 'class' => implode( ' ', $linkClasses ),
+ 'style' => $style,
+ 'href' => $title->getLocalURL()
+ ],
+ $title->getText()
+ ) . '&#160; ';
$htmlOut = $htmlOut . $currentRow;
}
$htmlOut = $htmlOut . '</div>';

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
20119807
Default Alt Text
T394590.diff (774 B)

Event Timeline