Merge branch 'release/0.9.39'

This commit is contained in:
Andy Miller
2015-08-25 10:45:28 -06:00
4 changed files with 10 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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])) {

View File

@@ -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);
}