Commit dae21ba0 authored by Simon's avatar Simon

Release 1.23.1

parent 19dbc83c
......@@ -540,11 +540,10 @@ add_action('init', 'df_disable_comments_admin_bar');
$userID = isset($_COOKIE['user_id']) ? $_COOKIE['user_id'] : uniqid(session_id(), true);
add_action('init', 'start_session', 1);
function start_session() {
global $userID;
if (!session_id()) {
if (session_status() == PHP_SESSION_NONE) {
session_start();
setcookie( 'user_id', $userID, strtotime( '+30 days' ) );
......@@ -558,6 +557,7 @@ function start_session() {
$_SESSION['request'] = $_SERVER['REQUEST_URI'];
}
}
add_action('init', 'start_session', 1);
function getAvailableOptions ( $request ) {
$res = array();
......
......@@ -37,7 +37,7 @@
<?php
global $biuroSettings;
if ($recommendPage && $biuroSettings->field('sales_page_biuro_services') == 'services'):
if ($biuroSettings->field('sales_page_biuro_services') == 'services'):
get_template_part( 'template-parts/sales-page/services', '' );
else:
get_template_part( 'template-parts/sales-page/services', 'widget' );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment