Skip to content

Commit

Permalink
Merge pull request #317 from xibosignage/develop
Browse files Browse the repository at this point in the history
1.8.5 patch
  • Loading branch information
dasgarner authored Jan 30, 2018
2 parents b737667 + 265341c commit e074fbe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion lib/Helper/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,15 @@ public function setUser($userId)
public function regenerateSessionId()
{
//$this->log->debug('Session regenerate');

session_regenerate_id(true);

$this->key = session_id();

// PHP7 calls open/close on regenerate
// PHP5 does neither
if (version_compare(phpversion(), '7.0') === -1) {
$this->insertSession($this->key, '', time(), time() + $this->maxLifetime);
}
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Widget/ForecastIo.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
class ForecastIo extends ModuleWidget
{
const API_ENDPOINT = 'https://api.darksky.net/forecast/player/';
const API_ENDPOINT = 'https://api.darksky.net/forecast/';

private $resourceFolder;
protected $codeSchemaVersion = 1;
Expand All @@ -46,7 +46,7 @@ class ForecastIo extends ModuleWidget
*/
public function init()
{
$this->resourceFolder = PROJECT_ROOT . '/modules/forecastio';
$this->resourceFolder = PROJECT_ROOT . '/modules/forecastio/player';

// Initialise extra validation rules
v::with('Xibo\\Validation\\Rules\\');
Expand Down

0 comments on commit e074fbe

Please sign in to comment.