Index: trunk/phase3/includes/actions/InfoAction.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | } |
44 | 44 | |
45 | 45 | protected function getPageTitle() { |
46 | | - return wfMsg( 'pageinfo-title', $this->getTitle()->getSubjectPage()->getPrefixedText() ); |
| 46 | + return $this->msg( 'pageinfo-title', $this->getTitle()->getSubjectPage()->getPrefixedText() )->text(); |
47 | 47 | } |
48 | 48 | |
49 | 49 | public function onView() { |
— | — | @@ -56,42 +56,42 @@ |
57 | 57 | return Html::rawElement( 'table', array( 'class' => 'wikitable mw-page-info' ), |
58 | 58 | Html::rawElement( 'tr', array(), |
59 | 59 | Html::element( 'th', array(), '' ) . |
60 | | - Html::element( 'th', array(), wfMsg( 'pageinfo-subjectpage' ) ) . |
61 | | - Html::element( 'th', array(), wfMsg( 'pageinfo-talkpage' ) ) |
| 60 | + Html::element( 'th', array(), $this->msg( 'pageinfo-subjectpage' )->text() ) . |
| 61 | + Html::element( 'th', array(), $this->msg( 'pageinfo-talkpage' )->text() ) |
62 | 62 | ) . |
63 | 63 | Html::rawElement( 'tr', array(), |
64 | | - Html::element( 'th', array( 'colspan' => 3 ), wfMsg( 'pageinfo-header-edits' ) ) |
| 64 | + Html::element( 'th', array( 'colspan' => 3 ), $this->msg( 'pageinfo-header-edits' )->text() ) |
65 | 65 | ) . |
66 | 66 | Html::rawElement( 'tr', array(), |
67 | | - Html::element( 'td', array(), wfMsg( 'pageinfo-edits' ) ) . |
| 67 | + Html::element( 'td', array(), $this->msg( 'pageinfo-edits' )->text() ) . |
68 | 68 | Html::element( 'td', array(), $this->getLanguage()->formatNum( $pageInfo['edits'] ) ) . |
69 | 69 | Html::element( 'td', array(), $this->getLanguage()->formatNum( $talkInfo['edits'] ) ) |
70 | 70 | ) . |
71 | 71 | Html::rawElement( 'tr', array(), |
72 | | - Html::element( 'td', array(), wfMsg( 'pageinfo-authors' ) ) . |
| 72 | + Html::element( 'td', array(), $this->msg( 'pageinfo-authors' )->text() ) . |
73 | 73 | Html::element( 'td', array(), $this->getLanguage()->formatNum( $pageInfo['authors'] ) ) . |
74 | 74 | Html::element( 'td', array(), $this->getLanguage()->formatNum( $talkInfo['authors'] ) ) |
75 | 75 | ) . |
76 | 76 | ( !$this->getUser()->isAllowed( 'unwatchedpages' ) ? '' : |
77 | 77 | Html::rawElement( 'tr', array(), |
78 | | - Html::element( 'th', array( 'colspan' => 3 ), wfMsg( 'pageinfo-header-watchlist' ) ) |
| 78 | + Html::element( 'th', array( 'colspan' => 3 ), $this->msg( 'pageinfo-header-watchlist' )->text() ) |
79 | 79 | ) . |
80 | 80 | Html::rawElement( 'tr', array(), |
81 | | - Html::element( 'td', array(), wfMsg( 'pageinfo-watchers' ) ) . |
| 81 | + Html::element( 'td', array(), $this->msg( 'pageinfo-watchers' )->text() ) . |
82 | 82 | Html::element( 'td', array( 'colspan' => 2 ), $this->getLanguage()->formatNum( $pageInfo['watchers'] ) ) |
83 | 83 | ) |
84 | 84 | ). |
85 | 85 | ( $wgDisableCounters ? '' : |
86 | 86 | Html::rawElement( 'tr', array(), |
87 | | - Html::element( 'th', array( 'colspan' => 3 ), wfMsg( 'pageinfo-header-views' ) ) |
| 87 | + Html::element( 'th', array( 'colspan' => 3 ), $this->msg( 'pageinfo-header-views' )->text() ) |
88 | 88 | ) . |
89 | 89 | Html::rawElement( 'tr', array(), |
90 | | - Html::element( 'td', array(), wfMsg( 'pageinfo-views' ) ) . |
| 90 | + Html::element( 'td', array(), $this->msg( 'pageinfo-views' )->text() ) . |
91 | 91 | Html::element( 'td', array(), $this->getLanguage()->formatNum( $pageInfo['views'] ) ) . |
92 | 92 | Html::element( 'td', array(), $this->getLanguage()->formatNum( $talkInfo['views'] ) ) |
93 | 93 | ) . |
94 | 94 | Html::rawElement( 'tr', array(), |
95 | | - Html::element( 'td', array(), wfMsg( 'pageinfo-viewsperedit' ) ) . |
| 95 | + Html::element( 'td', array(), $this->msg( 'pageinfo-viewsperedit' )->text() ) . |
96 | 96 | Html::element( 'td', array(), $this->getLanguage()->formatNum( sprintf( '%.2f', $pageInfo['edits'] ? $pageInfo['views'] / $pageInfo['edits'] : 0 ) ) ) . |
97 | 97 | Html::element( 'td', array(), $this->getLanguage()->formatNum( sprintf( '%.2f', $talkInfo['edits'] ? $talkInfo['views'] / $talkInfo['edits'] : 0 ) ) ) |
98 | 98 | ) |