mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
db must be first initialized before any sessions start
This commit is contained in:
parent
1fdaf1251c
commit
a9c5fee0c6
@ -52,7 +52,7 @@ $autoload['packages'] = array();
|
||||
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
|
||||
*/
|
||||
|
||||
$autoload['libraries'] = array('database', 'session', 'carabiner');
|
||||
$autoload['libraries'] = array('database', 'carabiner');
|
||||
|
||||
|
||||
/*
|
||||
|
@ -93,6 +93,9 @@ class Main extends CI_Controller
|
||||
$this->dbforge->add_key('timestamp');
|
||||
$this->dbforge->create_table('sessions', true);
|
||||
}
|
||||
|
||||
// load this after db has been initialized
|
||||
$this->load->library('session');
|
||||
|
||||
if (!$this->db->table_exists('pastes'))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user