mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
db fixes
This commit is contained in:
parent
f5b14893d7
commit
a86e7fe066
@ -52,7 +52,7 @@ $autoload['packages'] = array();
|
|||||||
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
|
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$autoload['libraries'] = array('database', "db_session");
|
$autoload['libraries'] = array('database', 'db_session');
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
$active_group = 'default';
|
$active_group = 'default';
|
||||||
$active_record = TRUE;
|
$active_record = TRUE;
|
||||||
|
|
||||||
$db['default']['hostname'] = 'localhost';
|
$db['default']['hostname'] = '127.0.0.1';
|
||||||
$db['default']['username'] = 'stikked';
|
$db['default']['username'] = 'stikked';
|
||||||
$db['default']['password'] = 'stikked';
|
$db['default']['password'] = 'stikked';
|
||||||
$db['default']['database'] = 'stikked';
|
$db['default']['database'] = 'stikked';
|
||||||
|
@ -350,7 +350,7 @@ class Pastes extends CI_Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->db->where('private', 0);
|
$this->db->where('private', 0);
|
||||||
$this->db->orderby('created', 'desc');
|
$this->db->order_by('created', 'desc');
|
||||||
$query = $this->db->get('pastes', $amount, $page);
|
$query = $this->db->get('pastes', $amount, $page);
|
||||||
$data['pastes'] = $query->result_array();
|
$data['pastes'] = $query->result_array();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user