Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo. #8663

Merged
merged 3 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions locale/function.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ function getAllFlags() {
}

/**
* Deprecated replaced by Layout::getAvilableFlags()
* Deprecated replaced by Layout::getAvailableFlags()
* @deprecated
* @global array $global
* @return array
*/
Expand Down Expand Up @@ -254,4 +255,4 @@ function revertLangString($lang) {
return $lang;
}

//var_dump(getLanguage());exit;
//var_dump(getLanguage());exit;
2 changes: 1 addition & 1 deletion plugin/Layout/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ static function getIconsSelect($name, $selected = "", $id = "", $class = "")
return self::getSelectSearchable($icons, $name, $selected, $id, $class . " iconSelect", true);
}

static function getAvilableFlags()
static function getAvailableFlags()
{
global $global;
$flags = array();
Expand Down
4 changes: 2 additions & 2 deletions view/configurations_body.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
<select class="form-control" id="inputLanguage" name="inputLanguage">
<?php
$selectedLang = $config->getLanguage();
$flags = Layout::getAvilableFlags();
$flags = Layout::getAvailableFlags();
//var_dump($selectedLang, $flags);exit;
foreach ($flags as $key => $value) {
$info = json_decode($value[0]);
Expand Down Expand Up @@ -863,4 +863,4 @@ function readFile(input, c) {
</script>
<?php
}
?>
?>
Loading