Index: trunk/extensions/GlobalUsage/SpecialGlobalUsage.php |
— | — | @@ -95,9 +95,13 @@ |
96 | 96 | */ |
97 | 97 | private function formatItem( $item ) { |
98 | 98 | if ( !$item['namespace'] ) |
99 | | - return htmlspecialchars( $item['title'] ); |
| 99 | + $page = $item['title']; |
100 | 100 | else |
101 | | - return htmlspecialchars( "{$item['namespace']}:{$item['title']}" ); |
| 101 | + $page = "{$item['namespace']}:{$item['title']}"; |
| 102 | + |
| 103 | + $wiki = WikiMap::getWiki( $item['wiki'] ); |
| 104 | + |
| 105 | + return WikiMap::makeForeignLink( $item['wiki'], $page ); |
102 | 106 | } |
103 | 107 | |
104 | 108 | } |
— | — | @@ -187,7 +191,8 @@ |
188 | 192 | $this->result[$row->gil_wiki] = array(); |
189 | 193 | $this->result[$row->gil_wiki][] = array( |
190 | 194 | 'namespace' => $row->gil_page_namespace, |
191 | | - 'title' => $row->gil_page_title |
| 195 | + 'title' => $row->gil_page_title, |
| 196 | + 'wiki' => $row->gil_wiki, |
192 | 197 | ); |
193 | 198 | } |
194 | 199 | } |