Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
avatec committed Oct 26, 2022
1 parent 8e3943f commit 9ccaf9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/languageBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ class LanguageBackend {
public static $selected = 'pl';
public static $lang = array();

public static function init()
public static function init($defaultLanguage = 'pl')
{
if(!empty($_SESSION['backend']['translations']['code'])) {
self::$selected = $_SESSION['backend']['translations']['code'];
} else {
self::change( "pl" );
self::change( $defaultLanguage );
}
}

Expand Down

0 comments on commit 9ccaf9a

Please sign in to comment.