From 8111eb77515b04a1baead64a63464559fe389188 Mon Sep 17 00:00:00 2001 From: lens0021 Date: Fri, 11 Jun 2021 23:05:59 +0900 Subject: [PATCH] Add omited prefix in related articles (cherry picked from commit acf625d98fd85f6bc01598c3f3547fd2bd081984) --- CHANGELOG.md | 4 ++++ includes/Hooks.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76a205c..4f3597f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ Versions and bullets are arranged chronologically from latest to oldest. +## Unreleased + +- Add omited prefix in related articles. + ## v1.1.0 - Add backlinks to the related articles. diff --git a/includes/Hooks.php b/includes/Hooks.php index 199f1ce..5f9eaae 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -237,7 +237,7 @@ private function getLinksTitle( Title $title ): array { $titles = []; foreach ( $result as $row ) { - $titles[] = Title::newFromRow( $row )->getText(); + $titles[] = Title::newFromRow( $row )->getPrefixedText(); } return $titles;