Skip to content

Commit c05de48

Browse files
authored
Fix parsing errors (#28)
1 parent 7d512c7 commit c05de48

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

LibertyTemplate.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,8 @@ protected function parseNavbar() {
924924
foreach ( $split as $key => $value ) {
925925
$valueArr = explode( '=', trim( $value ) );
926926
if ( isset( $valueArr[1] ) ) {
927-
$data[$valueArr[0]] = $valueArr[1];
927+
$newValue = implode( '=', array_slice($valueArr, 1));
928+
$data[$valueArr[0]] = $newValue;
928929
} else {
929930
$data[$types[$key]] = trim( $value );
930931
}
@@ -946,7 +947,7 @@ protected function parseNavbar() {
946947
if ( isset( $data['display'] ) ) {
947948
$textObj = $skin->msg( $data['display'] );
948949
if ( $textObj->isDisabled() ) {
949-
$text = htmlentities( $data['display'], ENT_QUOTES, 'UTF-8' );
950+
$href = $data['link'];
950951
} else {
951952
$text = $textObj->text();
952953
}

0 commit comments

Comments
 (0)