Skip to content

Commit

Permalink
Fix parsing errors (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahn9807 authored May 3, 2024
1 parent 7d512c7 commit c05de48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions LibertyTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,8 @@ protected function parseNavbar() {
foreach ( $split as $key => $value ) {
$valueArr = explode( '=', trim( $value ) );
if ( isset( $valueArr[1] ) ) {
$data[$valueArr[0]] = $valueArr[1];
$newValue = implode( '=', array_slice($valueArr, 1));
$data[$valueArr[0]] = $newValue;
} else {
$data[$types[$key]] = trim( $value );
}
Expand All @@ -946,7 +947,7 @@ protected function parseNavbar() {
if ( isset( $data['display'] ) ) {
$textObj = $skin->msg( $data['display'] );
if ( $textObj->isDisabled() ) {
$text = htmlentities( $data['display'], ENT_QUOTES, 'UTF-8' );
$href = $data['link'];
} else {
$text = $textObj->text();
}
Expand Down

0 comments on commit c05de48

Please sign in to comment.