Skip to content

Commit

Permalink
fix for EDIT-EXT
Browse files Browse the repository at this point in the history
  • Loading branch information
thaider committed Jun 13, 2021
1 parent 6aaacd0 commit 43ca2e4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions includes/TweekiTemplate.php
Expand Up @@ -333,7 +333,7 @@ protected function renderNavigation( $elements, $context = '' ) {
'items' => $items
];
} else {
$link = array_shift( $views );
$link = array_shift( $items );
$button = [
'href' => $link['href'],
'href_implicit' => false,
Expand All @@ -343,14 +343,13 @@ protected function renderNavigation( $elements, $context = '' ) {
'name' => 'ca-edit-ext'
];
if( isset( $items['edit'] ) ) {
$views['edit']['id'] = 'ca-edit-source';
$items['edit']['id'] = 'ca-edit-source';
}
$button['items'] = $items;
}
} else {
$link = array_shift( $views );
$button = [
'href' => $link['href'],
'href' => $views[0]['href'],
'id' => 'ca-edit',
'icon' => wfMessage( 'tweeki-edit-ext-icon' )->plain(),
'text' => wfMessage( 'tweeki-edit-ext', $this->data['namespace'] )->plain()
Expand Down

0 comments on commit 43ca2e4

Please sign in to comment.