From b45c70c9b315d3c10d6da51f0f890cf99ec76982 Mon Sep 17 00:00:00 2001 From: Michael Fairchild <mfairchild365@gmail.com> Date: Mon, 15 Feb 2016 15:42:44 -0600 Subject: [PATCH] Use a custom tmp directory --- .gitignore | 2 +- plugins/cas_auth_unl/start.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0fd67c09..c86f6fd2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ vagrant/dev/.vagrant data - +tmp diff --git a/plugins/cas_auth_unl/start.php b/plugins/cas_auth_unl/start.php index 3aa55554..8e27de43 100644 --- a/plugins/cas_auth_unl/start.php +++ b/plugins/cas_auth_unl/start.php @@ -142,7 +142,7 @@ class UnlCAS { $driver = new Stash\Driver\FileSystem(); // Setting a custom path is done by passing an options array to the constructor. - $options = array('path' => sys_get_temp_dir() .'/elgg_session_map_' . md5(__DIR__)); + $options = array('path' => __DIR__ .'/../../tmp/elgg_session_map'); $driver->setOptions($options); $pool = new Stash\Pool($driver); -- GitLab