* Get a Message object with its context set
*
* @param string $name Message name
+ * @param ... $params Message params
* @return Message
*/
- public function getMsg( $name ) {
- return $this->getSkin()->msg( $name );
+ public function getMsg( $name /* ... */ ) {
+ return call_user_func_array( [ $this->getSkin(), 'msg' ], func_get_args() );
}
function msg( $str ) {
* @return array
*/
function getToolbox() {
-
$toolbox = [];
if ( isset( $this->data['nav_urls']['whatlinkshere'] )
&& $this->data['nav_urls']['whatlinkshere']
$toolbox['recentchangeslinked'] = $this->data['nav_urls']['recentchangeslinked'];
$toolbox['recentchangeslinked']['msg'] = 'recentchangeslinked-toolbox';
$toolbox['recentchangeslinked']['id'] = 't-recentchangeslinked';
+ $toolbox['recentchangeslinked']['rel'] = 'nofollow';
}
if ( isset( $this->data['feeds'] ) && $this->data['feeds'] ) {
$toolbox['feeds']['id'] = 'feedlinks';
if ( $content !== '' ) {
echo "<div class='after-portlet after-portlet-$name'>$content</div>";
}
-
}
/**