Fix: tab attributes

The tab attributes were mistakenly being echoed instead of passed by
value. E.g., http://localhost:8181/wiki/A?uselang=he.

Bug: T239248
Change-Id: Ia0af96df717948743a2d66f8432b47e6f8a9c8f1
This commit is contained in:
Stephen Niedzielski 2019-12-06 16:32:48 -07:00
parent 11ad91633f
commit e0b29624d1
1 changed files with 2 additions and 2 deletions

View File

@ -324,7 +324,7 @@ class VectorTemplate extends BaseTemplate {
'empty-portlet' => ( count( $this->data['namespace_urls'] ) == 0 ) ? 'emptyPortlet' : '',
'label-id' => 'p-namespaces-label',
'msg-label' => $this->getMsg( 'namespaces' )->text(),
'html-userlangattributes' => $this->html( 'userlangattributes' ),
'html-userlangattributes' => $this->data['userlangattributes'] ?? '',
'html-items' => '',
];
@ -376,7 +376,7 @@ class VectorTemplate extends BaseTemplate {
'empty-portlet' => ( count( $this->data['view_urls'] ) == 0 ) ? 'emptyPortlet' : '',
'label-id' => 'p-views-label',
'msg-label' => $this->getMsg( 'views' )->text(),
'html-userlangattributes' => $this->html( 'userlangattributes' ),
'html-userlangattributes' => $this->data['userlangattributes'] ?? '',
'html-items' => '',
];