Skip to content
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
}
?>
?>