Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_RSSlink.php |
— | — | @@ -39,13 +39,13 @@ |
40 | 40 | protected function getResultText($res, $outputmode) { |
41 | 41 | global $smwgIQRunningNumber, $wgSitename, $wgServer, $smwgRSSEnabled, $wgRequest; |
42 | 42 | $result = ''; |
43 | | - wfLoadExtensionMessages('SemanticMediaWiki'); |
44 | 43 | if ($outputmode == SMW_OUTPUT_FILE) { // make RSS feed |
45 | 44 | if (!$smwgRSSEnabled) return ''; |
46 | 45 | if ($this->m_title == '') { |
47 | 46 | $this->m_title = $wgSitename; |
48 | 47 | } |
49 | 48 | if ($this->m_description == '') { |
| 49 | + wfLoadExtensionMessages('SemanticMediaWiki'); |
50 | 50 | $this->m_description = wfMsg('smw_rss_description', $wgSitename); |
51 | 51 | } |
52 | 52 | |
— | — | @@ -105,6 +105,7 @@ |
106 | 106 | if ($this->getSearchLabel($outputmode)) { |
107 | 107 | $label = $this->getSearchLabel($outputmode); |
108 | 108 | } else { |
| 109 | + wfLoadExtensionMessages('SemanticMediaWiki'); |
109 | 110 | $label = wfMsgForContent('smw_rss_link'); |
110 | 111 | } |
111 | 112 | $link = $res->getQueryLink($label); |
— | — | @@ -194,7 +195,7 @@ |
195 | 196 | public function uri() { |
196 | 197 | return $this->uri; |
197 | 198 | } |
198 | | - |
| 199 | + |
199 | 200 | /** |
200 | 201 | * Creates the RSS output for the single item. |
201 | 202 | */ |
— | — | @@ -231,7 +232,7 @@ |
232 | 233 | */ |
233 | 234 | private function clean($t) { |
234 | 235 | return trim(smwfXMLContentEncode($t)); |
235 | | - //return trim(str_replace(array('&','<','>'), array('&','<','>'), strip_tags(html_entity_decode($t, null, 'UTF-8')))); |
| 236 | + //return trim(str_replace(array('&','<','>'), array('&','<','>'), strip_tags(html_entity_decode($t, null, 'UTF-8')))); |
236 | 237 | } |
237 | 238 | } |
238 | 239 | |