summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Stjerneman2013-03-08 11:17:59 (GMT)
committerEmil Stjerneman2013-03-08 11:17:59 (GMT)
commit45ecd8d657b952bd1e15e656d02994b7f180c7de (patch)
treedce9185f5758457f0634abeebd783539a2251810
parent7aab8b260db30ec2b344c7be3a4546a226c37d5e (diff)
Fixed #1916630: ->serach_string should be ->search_string
-rw-r--r--plugins/linkit_plugins/linkit-plugin-entity.class.php4
-rw-r--r--plugins/plugin.class.php6
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/linkit_plugins/linkit-plugin-entity.class.php b/plugins/linkit_plugins/linkit-plugin-entity.class.php
index c5349d0..bbe081f 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 e3479e1..cb116cf 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;
}
/**