Skip to content

Commit 1af2415

Browse files
authored
Merge pull request #298 from arnowelzel/fix-275
Fix creating new translations for pages. Thanks @arnowelzel
2 parents d91ba6c + 6783a62 commit 1af2415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/MslsMetaBox.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function render_select() {
184184

185185
$language = $blog->get_language();
186186
$iconType = MslsAdminIcon::TYPE_FLAG === $this->options->admin_display ? MslsAdminIcon::TYPE_FLAG : MslsAdminIcon::TYPE_LABEL;
187-
$icon = MslsAdminIcon::create()->set_language( $language )->set_icon_type( $iconType );
187+
$icon = MslsAdminIcon::create($type)->set_language( $language )->set_icon_type( $iconType );
188188

189189
if ( $mydata->has_value( $language ) ) {
190190
$icon->set_href( $mydata->$language );

0 commit comments

Comments
 (0)