Index: branches/wikidata/phase3/includes/Title.php |
— | — | @@ -1184,7 +1184,7 @@ |
1185 | 1185 | * @access private |
1186 | 1186 | */ |
1187 | 1187 | /* private */ function prefix( $name ) { |
1188 | | - global $wgContLang, $wgNamespaces; |
| 1188 | + global $wgNamespaces; |
1189 | 1189 | |
1190 | 1190 | $p = ''; |
1191 | 1191 | if ( '' != $this->mInterwiki ) { |
Index: branches/wikidata/phase3/includes/Namespace.php |
— | — | @@ -205,9 +205,14 @@ |
206 | 206 | $this->isSearchedByDefault=(bool)$search; |
207 | 207 | } |
208 | 208 | |
209 | | - /* todo: support multiple talk pages */ |
| 209 | + /* TODO: support multiple discussion namespaces, |
| 210 | + so that things like a Review: namespace |
| 211 | + become possible in parallel to normal talk |
| 212 | + pages. */ |
210 | 213 | function getTalk() { |
211 | 214 | global $wgNamespaces; |
| 215 | + /* This behavior is expected by Title.php! */ |
| 216 | + if($this->isTalk()) return $this->getIndex(); |
212 | 217 | foreach($wgNamespaces as $ns) { |
213 | 218 | if($ns->hasParent() && $ns->parentIndex==$this->index) { |
214 | 219 | return $ns->index; |
Index: branches/wikidata/phase3/includes/SkinTemplate.php |
— | — | @@ -883,6 +883,7 @@ |
884 | 884 | * @private |
885 | 885 | */ |
886 | 886 | function getNameSpaceKey () { |
| 887 | + wfDebug("NS key is ".$this->mTitle->getNamespace()."\n"); |
887 | 888 | switch ($this->mTitle->getNamespace()) { |
888 | 889 | case NS_MAIN: |
889 | 890 | case NS_TALK: |