Code Duplication    Length = 5-5 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 4052-4056 (lines=5) @@
4049
     */
4050
    $location_array = apply_filters('geodir_filter_title_variables_location_arr_seo',$location_array, $vars);
4051
    $location_titles = array();
4052
    if(get_query_var( 'gd_country_full' )){
4053
        if(get_query_var( 'gd_country_full' )){$location_array['gd_country'] = get_query_var( 'gd_country_full' );}
4054
        if(get_query_var( 'gd_region_full' )){$location_array['gd_region'] = get_query_var( 'gd_region_full' );}
4055
        if(get_query_var( 'gd_city_full' )){$location_array['gd_city'] = get_query_var( 'gd_city_full' );}
4056
    }
4057
    $location_single = '';
4058
    $gd_country = (isset($wp->query_vars['gd_country']) && $wp->query_vars['gd_country'] != '') ? $wp->query_vars['gd_country'] : '';
4059
    $gd_region = (isset($wp->query_vars['gd_region']) && $wp->query_vars['gd_region'] != '') ? $wp->query_vars['gd_region'] : '';
@@ 4343-4347 (lines=5) @@
4340
     */
4341
    $location_array = apply_filters('geodir_filter_title_variables_location_arr',$location_array,$title, $gd_page, $sep);
4342
    $location_titles = array();
4343
    if($gd_page=='location' && get_query_var( 'gd_country_full' )){
4344
        if(get_query_var( 'gd_country_full' )){$location_array['gd_country'] = get_query_var( 'gd_country_full' );}
4345
        if(get_query_var( 'gd_region_full' )){$location_array['gd_region'] = get_query_var( 'gd_region_full' );}
4346
        if(get_query_var( 'gd_city_full' )){$location_array['gd_city'] = get_query_var( 'gd_city_full' );}
4347
    }
4348
    $location_single = '';
4349
    $gd_country = (isset($wp->query_vars['gd_country']) && $wp->query_vars['gd_country'] != '') ? $wp->query_vars['gd_country'] : '';
4350
    $gd_region = (isset($wp->query_vars['gd_region']) && $wp->query_vars['gd_region'] != '') ? $wp->query_vars['gd_region'] : '';