Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion application/controllers/twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ function __construct()
$this->load->library('twitteroauth');
// Loading twitter configuration.
$this->config->load('twitter');
// Loading session library to access the session
$this->load->library('session');
// Loading url helper library to use base_url and redirect function
$this->load->helper('url');

if($this->session->userdata('access_token') && $this->session->userdata('access_token_secret'))
{
Expand Down Expand Up @@ -175,4 +179,4 @@ private function reset_session()
}

/* End of file twitter.php */
/* Location: ./application/controllers/twitter.php */
/* Location: ./application/controllers/twitter.php */