Welcome Guest, Not a member yet? Register   Sign In
Refreshing the current site
#5

[eluser]grobald[/eluser]
i found a solution:
Code:
function add_rating($redirect)
    {
        // Check for auth
        if(!$this->auth->is_logged_in()) {
            $this->session->set_userdata('message', $this->lang->line('error_not_logged_in'));
            redirect('/user/'.substr($redirect, 0));
        }
i had to pass the actual username to the add function and than add to the redirect url

thx for help


Messages In This Thread
Refreshing the current site - by El Forum - 10-06-2008, 02:21 AM
Refreshing the current site - by El Forum - 10-06-2008, 02:32 AM
Refreshing the current site - by El Forum - 10-06-2008, 02:43 AM
Refreshing the current site - by El Forum - 10-06-2008, 02:46 AM
Refreshing the current site - by El Forum - 10-06-2008, 03:05 AM
Refreshing the current site - by El Forum - 10-06-2008, 03:12 AM
Refreshing the current site - by El Forum - 10-06-2008, 03:36 AM
Refreshing the current site - by El Forum - 10-06-2008, 04:21 AM
Refreshing the current site - by El Forum - 10-06-2008, 09:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB