Plugin Directory

Changeset 1056940


Ignore:
Timestamp:
12/30/2014 03:26:02 PM (11 years ago)
Author:
naveenann
Message:

Typo in variable name

Location:
opensearchserver-search/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • opensearchserver-search/trunk/index.php

    r1056902 r1056940  
    168168          delete_option($check_taxonomy_name);
    169169    }
    170   $custom_field_lables = opensearchserver_get_all_custom_fields();
    171     foreach($custom_field_lables as $custom_field_label => $key) {
     170  $custom_field_labels = opensearchserver_get_all_custom_fields();
     171    foreach($custom_field_labels as $custom_field_label => $key) {
    172172      $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label));
    173173      delete_option($check_custom_field_label);
  • opensearchserver-search/trunk/opensearchserver_admin.php

    r1056834 r1056940  
    102102  }
    103103  //Add custom fields schema
    104   $custom_field_lables = opensearchserver_get_all_custom_fields();
    105   foreach($custom_field_lables as $custom_field_label => $key) {
     104  $custom_field_labels = opensearchserver_get_all_custom_fields();
     105  foreach($custom_field_labels as $custom_field_label => $key) {
    106106    $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label));
    107107    if(get_option($check_custom_field_label)==1) {
     
    162162    }
    163163  }
    164   $custom_field_lables = opensearchserver_get_all_custom_fields();
    165   foreach($custom_field_lables as $custom_field_label => $key) {
     164  $custom_field_labels = opensearchserver_get_all_custom_fields();
     165  foreach($custom_field_labels as $custom_field_label => $key) {
    166166    $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label));
    167167    if(get_option($check_custom_field_label)==1) {
     
    448448
    449449  // Handling custom fields
    450   $custom_field_lables = opensearchserver_get_all_custom_fields();
    451   foreach($custom_field_lables as $custom_field_label => $key) {
     450  $custom_field_labels = opensearchserver_get_all_custom_fields();
     451  foreach($custom_field_labels as $custom_field_label => $key) {
    452452    $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label));
    453453    if(get_option($check_custom_field_label)==1) {
     
    754754        update_option('oss_taxonomy_'.$taxonomy, $check_taxonomy_name);
    755755    }
    756     $custom_field_lables = opensearchserver_get_all_custom_fields();
    757     foreach($custom_field_lables as $custom_field_label => $key) {
     756    $custom_field_labels = opensearchserver_get_all_custom_fields();
     757    foreach($custom_field_labels as $custom_field_label => $key) {
    758758      $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label));
    759759      $check_custom_field_value = (int)$_POST[$check_custom_field_label];
     
    12611261                          <legend>Custom Fields to index</legend>
    12621262                          <?php
    1263                           $custom_field_lables = opensearchserver_get_all_custom_fields();
    1264                           foreach($custom_field_lables as $custom_field_label => $key) {
     1263                          $custom_field_labels = opensearchserver_get_all_custom_fields();
     1264                          foreach($custom_field_labels as $custom_field_label => $key) {
    12651265                            $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label));
    12661266                          ?>
  • opensearchserver-search/trunk/template/opensearchserver_search.php

    r937843 r1056940  
    258258                  print $content.'<br/>';
    259259                }
    260                 $custom_fields_array = opensearchserver_get_custom_fields();
    261                 foreach($custom_fields_array as $field) {
    262                   $value = stripslashes($oss_results->getField($i, "custom_".opensearchserver_clean_field($field), false));
    263                   if($value) {
    264                     print '<b>'. $field.'</b> : '.$value.'<br/>';
    265                   }
    266                 }
    267260                ?>
    268261            </div>
Note: See TracChangeset for help on using the changeset viewer.