Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Types.php |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | if ( ( $linked === null ) || ( $linked === false ) || ( $this->m_outformat == '-' ) || ( $this->m_caption == '' ) ) { |
102 | 102 | return $this->m_caption; |
103 | 103 | } else { |
104 | | - $titleText = $this->getTitleText(); |
| 104 | + $titleText = $this->getSpecialPageTitleText(); |
105 | 105 | $namespace = $wgContLang->getNsText( NS_SPECIAL ); |
106 | 106 | return "[[$namespace:$titleText|{$this->m_caption}]]"; |
107 | 107 | } |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | if ( ( $linked === null ) || ( $linked === false ) || ( $this->m_outformat == '-' ) || ( $this->m_caption == '' ) ) { |
112 | 112 | return htmlspecialchars( $this->m_caption ); |
113 | 113 | } else { |
114 | | - $title = Title::makeTitle( NS_SPECIAL, $this->getTitleText() ); |
| 114 | + $title = Title::makeTitle( NS_SPECIAL, $this->getSpecialPageTitleText() ); |
115 | 115 | return $linker->makeLinkObj( $title, htmlspecialchars( $this->m_caption ) ); |
116 | 116 | } |
117 | 117 | } |
— | — | @@ -120,7 +120,7 @@ |
121 | 121 | if ( ( $linked === null ) || ( $linked === false ) ) { |
122 | 122 | return $this->m_realLabel; |
123 | 123 | } else { |
124 | | - $titleText = $this->getTitleText(); |
| 124 | + $titleText = $this->getSpecialPageTitleText(); |
125 | 125 | $namespace = $wgContLang->getNsText( NS_SPECIAL ); |
126 | 126 | return "[[$namespace:$titleText|{$this->m_realLabel}]]"; |
127 | 127 | } |
— | — | @@ -130,7 +130,7 @@ |
131 | 131 | if ( ( $linker === null ) || ( $linker === false ) ) { |
132 | 132 | return htmlspecialchars( $this->m_realLabel ); |
133 | 133 | } else { |
134 | | - $title = Title::makeTitle( NS_SPECIAL, $this->getTitleText() ); |
| 134 | + $title = Title::makeTitle( NS_SPECIAL, $this->getSpecialPageTitleText() ); |
135 | 135 | return $linker->makeLinkObj( $title, htmlspecialchars( $this->m_realLabel ) ); |
136 | 136 | } |
137 | 137 | } |
— | — | @@ -145,7 +145,7 @@ |
146 | 146 | * |
147 | 147 | * @return string |
148 | 148 | */ |
149 | | - protected function getTitleText() { |
| 149 | + protected function getSpecialPageTitleText() { |
150 | 150 | return is_callable( array( 'SpecialPageFactory', 'getLocalNameFor' ) ) ? |
151 | 151 | SpecialPageFactory::getLocalNameFor( 'Types', $this->m_realLabel ) |
152 | 152 | : SpecialPage::getLocalNameFor( 'Types', $this->m_realLabel ); |