mirror of
https://github.com/getgrav/grav.git
synced 2026-03-05 20:11:50 +01:00
Merge branch 'release/0.9.39'
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
# v0.9.39
|
||||
## 08/25/2015
|
||||
|
||||
1. [](#bugfix)
|
||||
* `Page.active()` not triggering on **homepage**
|
||||
* Fix for invalid session name in Opera browser
|
||||
|
||||
# v0.9.38
|
||||
## 08/24/2015
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
// Some standard defines
|
||||
define('GRAV', true);
|
||||
define('GRAV_VERSION', '0.9.38');
|
||||
define('GRAV_VERSION', '0.9.39');
|
||||
define('DS', '/');
|
||||
|
||||
// Directories and Paths
|
||||
|
||||
@@ -1710,7 +1710,7 @@ class Page
|
||||
*/
|
||||
public function active()
|
||||
{
|
||||
$uri_path = rtrim(self::getGrav()['uri']->path(), '/');
|
||||
$uri_path = rtrim(self::getGrav()['uri']->path(), '/') ?: '/';
|
||||
$routes = self::getGrav()['pages']->routes();
|
||||
|
||||
if (isset($routes[$uri_path])) {
|
||||
|
||||
@@ -45,7 +45,7 @@ class Session extends \RocketTheme\Toolbox\Session\Session
|
||||
);
|
||||
|
||||
$unique_identifier = GRAV_ROOT;
|
||||
$this->setName($config->get('system.session.name', 'grav_site') . '_' . substr(md5($unique_identifier), 0, 7) . ($is_admin ? '_admin' : ''));
|
||||
$this->setName($config->get('system.session.name', 'grav_site') . '-' . substr(md5($unique_identifier), 0, 7) . ($is_admin ? '-admin' : ''));
|
||||
$this->start();
|
||||
setcookie(session_name(), session_id(), time() + $session_timeout, $session_path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user