From 12ec0fc69eca1d9ae7176ac45c32365f81df4a62 Mon Sep 17 00:00:00 2001 From: Isarra Date: Wed, 28 Nov 2018 22:45:40 +0000 Subject: [PATCH] Make page logs link actually work for page Was using the page as th actor, not the target. Fixed. bug: T163262 Change-Id: Idf9a9b3170d34df6c1685ccbc10986619a4afd9e --- includes/TimelessTemplate.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/TimelessTemplate.php b/includes/TimelessTemplate.php index 151f900..6ef560d 100644 --- a/includes/TimelessTemplate.php +++ b/includes/TimelessTemplate.php @@ -614,7 +614,9 @@ class TimelessTemplate extends BaseTemplate { if ( $namespace >= 0 ) { $pileOfTools['pagelog'] = [ 'text' => $this->getMsg( 'timeless-pagelog' )->text(), - 'href' => SpecialPage::getTitleFor( 'Log', $title->getPrefixedText() )->getLocalURL(), + 'href' => SpecialPage::getTitleFor( 'Log' )->getLocalURL( + [ 'page' => $title->getPrefixedText() ] + ), 'id' => 't-pagelog' ]; }