Fix promblem with Session loading
This commit is contained in:
parent
985842edf3
commit
c9ea14362d
@ -17,7 +17,6 @@
|
|||||||
* Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft)
|
* Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft)
|
||||||
*/
|
*/
|
||||||
namespace Framadate;
|
namespace Framadate;
|
||||||
session_start();
|
|
||||||
|
|
||||||
include_once __DIR__ . '/../app/inc/init.php';
|
include_once __DIR__ . '/../app/inc/init.php';
|
||||||
include_once __DIR__ . '/../bandeaux.php';
|
include_once __DIR__ . '/../bandeaux.php';
|
||||||
|
@ -19,6 +19,9 @@
|
|||||||
use Framadate\FramaDB;
|
use Framadate\FramaDB;
|
||||||
use Framadate\Utils;
|
use Framadate\Utils;
|
||||||
|
|
||||||
|
// Autoloading of dependencies with Composer
|
||||||
|
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||||
|
|
||||||
if (session_id() == '') {
|
if (session_id() == '') {
|
||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
@ -28,9 +31,6 @@ if (ini_get('date.timezone') == '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
include_once __DIR__ . '/constants.php';
|
include_once __DIR__ . '/constants.php';
|
||||||
|
|
||||||
// Autoloading of dependencies with Composer
|
|
||||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
|
||||||
include_once __DIR__ . '/i18n.php';
|
include_once __DIR__ . '/i18n.php';
|
||||||
|
|
||||||
// Smarty
|
// Smarty
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
namespace Framadate;
|
namespace Framadate;
|
||||||
|
|
||||||
include_once __DIR__ . '/app/inc/init.php';
|
include_once __DIR__ . '/app/inc/init.php';
|
||||||
|
|
||||||
if (!isset($_SESSION['form'])) {
|
if (!isset($_SESSION['form'])) {
|
||||||
$_SESSION['form'] = new Form();
|
$_SESSION['form'] = new Form();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user