X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ftitle%2FTitleValue.php;h=698bc4f8be88e85a8db2fee0a86abda07eefdf05;hb=d9fb5f03468ee31fd111236bd48475f8ef5b1918;hp=18e578dbb9f92ba66d0434ec700abb090f5d915d;hpb=532b15c80083f97ab00e42c2a03ccb461db0bc5d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/title/TitleValue.php b/includes/title/TitleValue.php index 18e578dbb9..698bc4f8be 100644 --- a/includes/title/TitleValue.php +++ b/includes/title/TitleValue.php @@ -59,6 +59,16 @@ class TitleValue implements LinkTarget { */ protected $interwiki; + /** + * Text form including namespace/interwiki, initialised on demand + * + * Only public to share cache with TitleFormatter + * + * @private + * @var string + */ + public $prefixedText = null; + /** * Constructs a TitleValue. * @@ -158,7 +168,7 @@ class TitleValue implements LinkTarget { * @return string */ public function getText() { - return str_replace( '_', ' ', $this->getDBkey() ); + return str_replace( '_', ' ', $this->dbkey ); } /**