aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2025-02-24 11:22:45 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2025-02-24 11:22:45 +0000
commit005325a120d3fbab9bca8b47fc3d9384d1e822d0 (patch)
tree764d8b09f3983d356f0c35819a67fe75e62f59bf
parent0ea9396eff75153525b4a8f075bcf05c6b1b1006 (diff)
parent7fe0b7e70725ab866b2b87a6fab161fa9a118c18 (diff)
downloadmediawikicore-005325a120d3fbab9bca8b47fc3d9384d1e822d0.tar.gz
mediawikicore-005325a120d3fbab9bca8b47fc3d9384d1e822d0.zip
Merge "Fix formatting of blocking admin value"
-rw-r--r--includes/specials/pagers/BlockListPager.php4
-rw-r--r--tests/phpunit/includes/specials/pagers/BlockListPagerTest.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/includes/specials/pagers/BlockListPager.php b/includes/specials/pagers/BlockListPager.php
index a00db2cc0c44..3977e48a925b 100644
--- a/includes/specials/pagers/BlockListPager.php
+++ b/includes/specials/pagers/BlockListPager.php
@@ -113,7 +113,7 @@ class BlockListPager extends TablePager {
'bl_timestamp' => 'blocklist-timestamp',
'target' => 'blocklist-target',
'bl_expiry' => 'blocklist-expiry',
- 'by' => 'blocklist-by',
+ 'bl_by' => 'blocklist-by',
'params' => 'blocklist-params',
'bl_reason' => 'blocklist-reason',
];
@@ -205,7 +205,7 @@ class BlockListPager extends TablePager {
}
break;
- case 'by':
+ case 'bl_by':
$formatted = Linker::userLink( (int)$value, $row->bl_by_text );
$formatted .= Linker::userToolLinks( (int)$value, $row->bl_by_text );
break;
diff --git a/tests/phpunit/includes/specials/pagers/BlockListPagerTest.php b/tests/phpunit/includes/specials/pagers/BlockListPagerTest.php
index fa949a23b4ea..0a401c6bb164 100644
--- a/tests/phpunit/includes/specials/pagers/BlockListPagerTest.php
+++ b/tests/phpunit/includes/specials/pagers/BlockListPagerTest.php
@@ -175,7 +175,7 @@ class BlockListPagerTest extends MediaWikiIntegrationTestCase {
$row,
],
[
- 'by',
+ 'bl_by',
'<a %s><bdi>Admin</bdi></a>%s',
$row,
],