From 27cb2f9ab0106c47df09a745d225d823584edfed Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 25 Aug 2008 05:51:46 +0000 Subject: [PATCH] Follow-up for r39935: re-fix bug 14651 by making the first letter uppercase if needed in keyToTitle(). Code stolen from Yuri in r17039, who removed the functionality without explanation in r17096. So much for today's history lesson. --- includes/api/ApiQueryBase.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index b5ceb75e63..af71a56d71 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -324,6 +324,9 @@ abstract class ApiQueryBase extends ApiBase { * @return string Page title with underscores */ public function titleToKey($title) { + global $wgContLang, $wgCapitalLinks; + if($wgCaptialLinks) + $title = $wgContLang->ucfirst($title); return str_replace(' ', '_', $title); } -- 2.20.1