فهرست منبع

fixed a message again

Bachir Soussi Chiadmi 10 سال پیش
والد
کامیت
8f32d4e98b
1فایلهای تغییر یافته به همراه8 افزوده شده و 5 حذف شده
  1. 8 5
      materio_search_api.module

+ 8 - 5
materio_search_api.module

@@ -774,24 +774,27 @@ function template_preprocess_materio_search_api_results(array &$vars) {
     if(isset($results['breves count'])){
       // for free users
       $vars['perfascard'] = true;
-      $vars['search_performance'] = format_plural(
+      $perfoutput = format_plural(
         $results['breves count'],
         'The search found 1 news ',
         'The search found @count news '
       );
-      $vars['search_performance'] .= format_plural(
+      $perfoutput .= format_plural(
         $vars['result_count'] - $results['breves count'],
         'with 1 associated matter.',
         'with @count associated matters.'
       );
-      $vars['search_performance'] .= format_plural(
+      $perfoutput .= '<br />';
+      $perfoutput .= format_plural(
         $results['could results']['result count'],
         ' You could have found 1 result with a ',
         ' You could have found <strong>@count results</strong> with a '
       );
-      $vars['search_performance'] .= l(t('full access to materiO\'.'), 'node/11187');
+      $perfoutput .= l(t('full access to materiO\'.'), 'node/11187');
 
-      $vars['search_performance'] .= l(t('Pricing'), 'node/11187', array("attributes"=>array("class"=>array('button'))));
+      $perfoutput .= l(t('Pricing'), 'node/11187', array("attributes"=>array("class"=>array('button'))));
+
+      $vars['search_performance'] = $perfoutput;
 
     }else{
       // for members