Permalink
Browse files

use search helpers

  • Loading branch information...
1 parent e18c480 commit 6c7bbfb5ffce988dace7fecf6278922c2fcb4834 @juanramon juanramon committed May 31, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 breadcrumbs/index.php
View
@@ -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() {

0 comments on commit 6c7bbfb

Please sign in to comment.