Follow-up for r39935: re-fix bug 14651 by making the first letter uppercase if needed...
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 25 Aug 2008 05:51:46 +0000 (05:51 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 25 Aug 2008 05:51:46 +0000 (05:51 +0000)
includes/api/ApiQueryBase.php

index b5ceb75..af71a56 100644 (file)
@@ -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);
        }