Skip to content

Commit

Permalink
fix: html attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndresCortes committed Aug 10, 2024
1 parent 0dd02be commit 283090c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function template_html_above()

// Show right to left, the language code, and the character set for ease of translating.
echo '<!DOCTYPE html>
<html', $context['right_to_left'] ? ' dir="rtl"' : '', !empty($txt['lang_locale']) ? ' lang="' . str_replace("_", "-", substr($txt['lang_locale'], 0, strcspn($txt['lang_locale'], "."))) . '"' : '', $settings['themecustoms_html_attributes_data'] ?? '', '>
<html', $context['right_to_left'] ? ' dir="rtl"' : '', !empty($txt['lang_locale']) ? ' lang="' . str_replace("_", "-", substr($txt['lang_locale'], 0, strcspn($txt['lang_locale'], "."))) . '"' : '', $settings['themecustoms_html_attributes'] ?? '', '>
<head>
<meta charset="', $context['character_set'], '">';

Expand Down

0 comments on commit 283090c

Please sign in to comment.