Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use search helpers

  • Loading branch information...
commit 6c7bbfb5ffce988dace7fecf6278922c2fcb4834 1 parent e18c480
@juanramon juanramon authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 breadcrumbs/index.php
View
8 breadcrumbs/index.php
@@ -68,9 +68,9 @@ function breadcrumbs($separator = '/') {
$text = $page_title . $separator . '<span class="bc_last">' . osc_static_page_title() . '</span>';
break;
case('search'):
- $region = Params::getParam('sRegion');
- $city = Params::getParam('sCity');
- $pattern = Params::getParam('sPattern');
+ $region = osc_search_region();
+ $city = osc_search_city();
+ $pattern = osc_search_pattern();
$category = osc_search_category_id();
$category = ((count($category) == 1) ? $category[0] : '');
@@ -196,7 +196,7 @@ function breadcrumbs_category_url($category_id) {
} else {
$path = sprintf( osc_base_url(true) . '?page=search&sCategory=%d', $category_id ) ;
}
- return $path ;
+ return rtrim($path, "/");
}
function breadcrumbs_admin_menu() {
Please sign in to comment.
Something went wrong with that request. Please try again.