Skip to content
Permalink
Browse files Browse the repository at this point in the history
Bug - Fix link creation for html template function to negate JS issue.
  • Loading branch information
mark-unwin committed Oct 31, 2021
1 parent 1ce0393 commit e37b64b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions code_igniter/application/helpers/output_helper.php
Expand Up @@ -1076,12 +1076,7 @@ function output_convert($data)

function create_url($query_parameters = null)
{
$CI = & get_instance();
$proto = 'http://';
if ($CI->config->config['is_ssl'] === true) {
$proto = 'https://';
}
$link = $proto . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . '?';
$link = '?';
if (!empty($query_parameters)) {
for ($i=0; $i < count($query_parameters); $i++) {
if (!empty($query_parameters[$i]->name)) {
Expand Down

0 comments on commit e37b64b

Please sign in to comment.