diff --git a/plugins/linkit_plugins/linkit-plugin-entity.class.php b/plugins/linkit_plugins/linkit-plugin-entity.class.php index c5349d079ed2bbcbc9d623c6c3d94f9c2c3da4ce..bbe081f40305267b72ec65165e8db0cd4ae737fe 100644 --- a/plugins/linkit_plugins/linkit-plugin-entity.class.php +++ b/plugins/linkit_plugins/linkit-plugin-entity.class.php @@ -160,7 +160,7 @@ class LinkitPluginEntity extends LinkitPlugin { // Add the search condition to the query object. $this->query->propertyCondition($this->entity_field_label, - '%' . db_like($this->serach_string) . '%', 'LIKE') + '%' . db_like($this->search_string) . '%', 'LIKE') ->addTag('linkit_entity_autocomplete') ->addTag('linkit_' . $this->plugin['entity_type'] . '_autocomplete'); @@ -231,7 +231,7 @@ class LinkitPluginEntity extends LinkitPlugin { // Get supported tokens for the entity type. $tokens = linkit_extract_tokens($this->plugin['entity_type']); - // A short description in within the serach result for each row. + // A short description in within the search result for each row. $form[$this->plugin['name']]['result_description'] = array( '#title' => t('Result format'), '#type' => 'textfield', diff --git a/plugins/plugin.class.php b/plugins/plugin.class.php index e3479e17412f0c0249f542c3ec9102f1b74ce2ac..cb116cf1c1978efc7f002a6bb8bc407556b8f277 100644 --- a/plugins/plugin.class.php +++ b/plugins/plugin.class.php @@ -58,10 +58,10 @@ abstract class LinkitPlugin implements LinkitPluginInterface { /** * Set the search string. * - * @param string $serach_string. + * @param string $search_string. */ - function setSearchString($serach_string) { - $this->serach_string = $serach_string; + function setSearchString($search_string) { + $this->search_string = $search_string; } /**