summaryrefslogtreecommitdiffstats
path: root/lib/init.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2012-03-02 09:45:43 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2012-03-02 09:45:43 -0500
commit3389d513fea063114ad9fc580ed5d3266509edeb (patch)
treec6c56520db8ba478f20bd61192ab7e4c6d35745f /lib/init.php
parent3d8e3ac86c595e5703c2e2d648a19b718942a7dd (diff)
downloadampache-3389d513fea063114ad9fc580ed5d3266509edeb.tar.gz
ampache-3389d513fea063114ad9fc580ed5d3266509edeb.tar.bz2
ampache-3389d513fea063114ad9fc580ed5d3266509edeb.zip
Explicitly load vauth in init.php
As there are some code paths that do session manipulation without any calls to vauth first, relying on autoload may result in our custom session handler not being used.
Diffstat (limited to 'lib/init.php')
-rw-r--r--lib/init.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/init.php b/lib/init.php
index cab634c8..dc6a34cc 100644
--- a/lib/init.php
+++ b/lib/init.php
@@ -44,6 +44,11 @@ $configfile = "$prefix/config/ampache.cfg.php";
require_once $prefix . '/lib/general.lib.php';
require_once $prefix . '/lib/class/config.class.php';
+// Explicitly load vauth and enable the custom session handler.
+// Relying on autoload may not always load it before sessiony things are done.
+require_once $prefix . '/lib/class/vauth.class.php';
+vauth::_auto_init();
+
if (!function_exists('gettext')) {
require_once $prefix . '/modules/emulator/gettext.php';
}