TitleValue: Avoid function call for internal property
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 17 Aug 2018 23:15:20 +0000 (16:15 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sat, 18 Aug 2018 00:10:46 +0000 (17:10 -0700)
Change-Id: I16342469a8122bd46cada11fd1f1d3f88d2e8d1e

includes/title/TitleValue.php

index 18e578d..43a399a 100644 (file)
@@ -158,7 +158,7 @@ class TitleValue implements LinkTarget {
         * @return string
         */
        public function getText() {
-               return str_replace( '_', ' ', $this->getDBkey() );
+               return str_replace( '_', ' ', $this->dbkey );
        }
 
        /**