Index: contributions/modules/refine_by_taxo/refine_by_taxo.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/refine_by_taxo/Attic/refine_by_taxo.module,v
retrieving revision 1.3
diff -u -p -r1.3 refine_by_taxo.module
--- contributions/modules/refine_by_taxo/refine_by_taxo.module	21 Aug 2006 09:18:23 -0000	1.3
+++ contributions/modules/refine_by_taxo/refine_by_taxo.module	22 Feb 2007 21:08:02 -0000
@@ -41,7 +41,7 @@ function refine_by_taxo_block($op, $delt
 function refine_by_taxo_list_blocks() {
   //NOTE: delta cannot become longer then 32 chars!
   foreach (taxonomy_get_vocabularies() as $vid => $voc) {
-    $blocks[$voc->vid]['info'] = variable_get('refine_by_taxo_block_title_'. $voc->vid, t('refine with terms from %voc', array('%voc' => $voc->name)));
+    $blocks[$voc->vid]['info'] = variable_get('refine_by_taxo_block_title_'. $voc->vid, t('refine with terms from !voc', array('!voc' => $voc->name)));
   }
   return $blocks;
 }
@@ -51,7 +51,7 @@ function refine_by_taxo_configure_blocks
   $form['title'] = array(
     '#type' => 'textfield',
     '#title' => t('Block title'),
-    '#default_value' => variable_get('refine_by_taxo_block_title_'. $delta, t('refine with terms from %voc', array('%voc' => $voc->name))),
+    '#default_value' => variable_get('refine_by_taxo_block_title_'. $delta, t('refine with terms from !voc', array('!voc' => $voc->name))),
     '#maxlength' => 64,
     '#description' => t('The title of the block as shown to the user.'),
   );
@@ -67,7 +67,7 @@ function refine_by_taxo_configure_blocks
     '#title' => t('Type of relation'),
     '#default_value' => variable_get('refine_by_taxo_type_'. $delta, 'and_node'),
     '#options' => _refine_by_taxo_options(),
-    '#description' => t('The type of relation to refine trough.'),
+    '#description' => t('The type of relation to refine through.'),
   );
   return $form;
 }
@@ -76,7 +76,7 @@ function refine_by_taxo_configure_blocks
  * hook block helper. Save the variables;
  */
 function refine_by_taxo_save_blocks($delta, $edit) {
-  variable_get('refine_by_taxo_block_tags_'. $delta, $edit['terms']);
+  variable_set('refine_by_taxo_block_tags_'. $delta, $edit['terms']);
   variable_set('refine_by_taxo_block_title_'. $delta, $edit['title']);
   variable_set('refine_by_taxo_type_'. $delta, $edit['type']);
 }
@@ -114,7 +114,7 @@ function refine_by_taxo_view_blocks($del
   }
 
   $block['content'] = refine_by_taxo_build_body($terms, $op);
-  $block['subject'] = variable_get('refine_by_taxo_block_title_'. $delta, t('refine with terms from %voc', array('%voc' => $voc->name)));
+  $block['subject'] = variable_get('refine_by_taxo_block_title_'. $delta, t('refine with terms from !voc', array('!voc' => $voc->name)));
   return $block;
 }
 
@@ -209,8 +209,9 @@ function refine_by_taxo_find_related_ter
   }
 
   foreach ($tids as $tid) {
-    if ($i <= variable_get('refine_by_taxo_block_tags_'. $delta, 12))
+    if ($i <= variable_get('refine_by_taxo_block_tags_'. $delta, 12)) {
       $terms[$tid] = taxonomy_get_term($tid);
+    }
     else {
       return $terms;
     }
@@ -228,8 +229,9 @@ function refine_by_taxo_find_related_ter
   }
 
   foreach ($tids as $tid) {
-    if ($i <= variable_get('refine_by_taxo_block_tags_'. $delta, 12))
+    if ($i <= variable_get('refine_by_taxo_block_tags_'. $delta, 12)) {
       $terms[$tid] = taxonomy_get_term($tid);
+    }
     else {
       return $terms;
     }
@@ -303,11 +305,11 @@ function refine_by_taxo_get_leading_op()
  */
 function _refine_by_taxo_options() {
   return array(
-   'or_node' => t('Refine tags with OR, interconnected trough nodes'),
-   'or_related' => t('Refine tags with OR, interconnected trough \'related\''),
-   'or_hierarchy' => t('Refine tags with OR, interconnected trough hierarchy'),
-   'and_node' => t('Refine tags with AND, interconnected trough nodes'),
-   'and_related' => t('Refine tags with AND, interconnected trough \'related\''),
-   'and_hierarchy' => t('Refine tags with AND, interconnected trough hierarchy'),
+   'or_node' => t('Refine tags with OR, interconnected through nodes'),
+   'or_related' => t('Refine tags with OR, interconnected through \'related\''),
+   'or_hierarchy' => t('Refine tags with OR, interconnected through hierarchy'),
+   'and_node' => t('Refine tags with AND, interconnected through nodes'),
+   'and_related' => t('Refine tags with AND, interconnected through \'related\''),
+   'and_hierarchy' => t('Refine tags with AND, interconnected through hierarchy'),
   );
-}
\ No newline at end of file
+}
