Skip to content

Commit

Permalink
Merge pull request #2491 from Leantime/defaultThemeFixes
Browse files Browse the repository at this point in the history
Default theme fixes
  • Loading branch information
marcelfolaron committed Apr 29, 2024
2 parents b9228b0 + 097a2e7 commit 8cae169
Show file tree
Hide file tree
Showing 14 changed files with 161 additions and 138 deletions.
62 changes: 0 additions & 62 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/Core/Language.php
Expand Up @@ -99,7 +99,7 @@ public function __construct(

//Start checking if the user has a language set
if (!$this->setLanguage($language)) {
$this->setLanguage($this->config->language);
$this->setLanguage("en-US");
}
}

Expand Down
4 changes: 2 additions & 2 deletions app/Core/Session.php
Expand Up @@ -85,7 +85,7 @@ public function __construct(

//test remote host info
$session_string = ! $this->request instanceof CliRequest
? self::get_client_ip() . $_SERVER['HTTP_HOST']
? self::get_client_ip() . $_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME']
: 'cli';

$testSessionHost = hash('sha1', $session_string . $this->sessionpassword);
Expand Down Expand Up @@ -136,7 +136,7 @@ public static function getSID(): string
private function makeSID(): void
{
$session_string = ! $this->request instanceof CliRequest
? self::get_client_ip() . $_SERVER['HTTP_HOST']
? self::get_client_ip() . $_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME']
: 'cli';

$tmp = hash('sha1', mt_rand(32, 32) . $session_string . time());
Expand Down

0 comments on commit 8cae169

Please sign in to comment.