Merge pull request #4893 from dhensby/pulls/member-regenerate-session-id

FIX session_regenerate_id uses config system
This commit is contained in:
Damian Mooyman 2016-01-06 15:16:31 +13:00
commit 21e1e938eb

View File

@ -359,7 +359,7 @@ class Member extends DataObject implements TemplateGlobalProvider {
* quirky problems (such as using the Windmill 0.3.6 proxy).
*/
public static function session_regenerate_id() {
if(!self::$session_regenerate_id) return;
if(!self::config()->session_regenerate_id) return;
// This can be called via CLI during testing.
if(Director::is_cli()) return;