r49216 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49215‎ | r49216 | r49217 >
Date:16:08, 5 April 2009
Author:mkroetzsch
Status:deferred
Tags:
Comment:
use wfMsg (not "for content")
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Auto.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_CSV.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Embedded.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_JSONlink.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_List.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_RSSlink.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Table.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Template.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Auto.php
@@ -32,7 +32,7 @@
3333
3434 public function getName() {
3535 wfLoadExtensionMessages('SemanticMediaWiki');
36 - return wfMsgForContent('smw_printername_auto');
 36+ return wfMsg('smw_printername_auto');
3737 }
3838
3939 }
\ No newline at end of file
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_List.php
@@ -38,7 +38,7 @@
3939
4040 public function getName() {
4141 wfLoadExtensionMessages('SemanticMediaWiki');
42 - return wfMsgForContent('smw_printername_' . $this->mFormat);
 42+ return wfMsg('smw_printername_' . $this->mFormat);
4343 }
4444
4545 protected function getResultText($res,$outputmode) {
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_RSSlink.php
@@ -42,7 +42,7 @@
4343
4444 public function getName() {
4545 wfLoadExtensionMessages('SemanticMediaWiki');
46 - return wfMsgForContent('smw_printername_rss');
 46+ return wfMsg('smw_printername_rss');
4747 }
4848
4949 protected function getResultText($res, $outputmode) {
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Table.php
@@ -15,10 +15,9 @@
1616
1717 public function getName() {
1818 wfLoadExtensionMessages('SemanticMediaWiki');
19 - return wfMsgForContent('smw_printername_' . $this->mFormat);
 19+ return wfMsg('smw_printername_' . $this->mFormat);
2020 }
2121
22 -
2322 protected function getResultText($res, $outputmode) {
2423 global $smwgIQRunningNumber;
2524 SMWOutputs::requireHeadItem(SMW_HEADER_SORTTABLE);
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_JSONlink.php
@@ -32,7 +32,7 @@
3333
3434 public function getName() {
3535 wfLoadExtensionMessages('SemanticMediaWiki');
36 - return wfMsgForContent('smw_printername_json');
 36+ return wfMsg('smw_printername_json');
3737 }
3838
3939 protected function getResultText($res, $outputmode) {
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Embedded.php
@@ -38,7 +38,7 @@
3939
4040 public function getName() {
4141 wfLoadExtensionMessages('SemanticMediaWiki');
42 - return wfMsgForContent('smw_printername_embedded');
 42+ return wfMsg('smw_printername_embedded');
4343 }
4444
4545 protected function getResultText($res,$outputmode) {
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_CSV.php
@@ -37,7 +37,7 @@
3838
3939 public function getName() {
4040 wfLoadExtensionMessages('SemanticMediaWiki');
41 - return wfMsgForContent('smw_printername_csv');
 41+ return wfMsg('smw_printername_csv');
4242 }
4343
4444 protected function getResultText($res, $outputmode) {
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Template.php
@@ -35,7 +35,7 @@
3636
3737 public function getName() {
3838 wfLoadExtensionMessages('SemanticMediaWiki');
39 - return wfMsgForContent('smw_printername_template');
 39+ return wfMsg('smw_printername_template');
4040 }
4141
4242 protected function getResultText($res, $outputmode) {

Status & tagging log