This commit is contained in:
Claude 2012-04-13 12:26:57 +02:00
parent f5b14893d7
commit a86e7fe066
3 changed files with 3 additions and 3 deletions

View File

@ -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');
/* /*

View File

@ -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';

View File

@ -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();