Changeset 9353


Ignore:
Timestamp:
02/22/11 23:21:59 (9 years ago)
Author:
plg
Message:

feature 2197 added: if make_index_url() adds no parameters after index.php?, then we return get_absolute_root_url()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_url.inc.php

    r8728 r9353  
    135135    $url .= '?'; 
    136136  } 
     137 
     138  $url_before_params = $url; 
     139   
    137140  $url.= make_section_in_url($params); 
    138141  $url = add_well_known_params_in_url($url, $params); 
     142 
     143  if ($url == $url_before_params) 
     144  { 
     145    $url = get_absolute_root_url(); 
     146  } 
     147   
    139148  return $url; 
    140149} 
Note: See TracChangeset for help on using the changeset viewer.