Skip to content

Commit

Permalink
Remove unnecessary variable assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Mar 21, 2016
1 parent fdf8694 commit 0ddc53d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/form_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ function form_security_param( $p_form_name, $p_security_token = null ) {
$t_string = $p_security_token === null ? form_security_token( $p_form_name ) : $p_security_token;

# Create the GET parameter to be used in a URL for a secure link
$t_form_token = $p_form_name . '_token';
$t_param = '&%s=%s';
$t_param = sprintf( $t_param, $t_form_token, $t_string );

return $t_param;
return sprintf(
'&%s=%s',
$p_form_name . '_token',
$t_string
);
}

/**
Expand Down

0 comments on commit 0ddc53d

Please sign in to comment.