From 72782f43879692228be4ade17b7a077df6062ee6 Mon Sep 17 00:00:00 2001
From: Dan Feidt <dan@Swapbeats.com>
Date: Fri, 11 Mar 2011 17:01:13 -0600
Subject: [PATCH 1/2] Issue #1089908: fixed function name and typos

---
 og_statistics.admin.inc |    6 +++---
 og_statistics.module    |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/og_statistics.admin.inc b/og_statistics.admin.inc
index da97915..48fdaff 100644
--- a/og_statistics.admin.inc
+++ b/og_statistics.admin.inc
@@ -33,18 +33,18 @@ function og_statistics_settings_submit(&$form, &$form_state) {
     $counter ++;
     $array[] = $nid;
     if (($counter % 20) == 1) {
-      $operations[] = array('og_statistcs_recalc', array($array));
+      $operations[] = array('og_statistics_recalc', array($array));
       $array = array();
     }
   }
-  $operations[] = array('og_statistcs_recalc', array($array));
+  $operations[] = array('og_statistics_recalc', array($array));
   // Execute the batch progress
   $batch = array(
     'operations' => $operations,
     'title' => 'Generating statistics',
     'init_message' => 'Loading group nodes',
     'error_message' => 'An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.',
-    'finished' => 'og_statistcs_settings_finished',
+    'finished' => 'og_statistics_settings_finished',
   );
   batch_set($batch);
   batch_process('admin/settings/og_statistics');
diff --git a/og_statistics.module b/og_statistics.module
index 59a7338..12804d7 100644
--- a/og_statistics.module
+++ b/og_statistics.module
@@ -424,8 +424,8 @@ function og_statistcs_recalc($nids = array()) {
   }
 }
 
-function og_statistcs_settings_finished() {
-  drupal_set_message('Statistics rebuilded successfull');
+function og_statistics_settings_finished() {
+  drupal_set_message('Statistics rebuild successful');
 }
 
 
-- 
1.7.3.2


From e81e52efe7b1135dc4fb6694ffe93c116840caf9 Mon Sep 17 00:00:00 2001
From: Dan Feidt <dan@Swapbeats.com>
Date: Fri, 11 Mar 2011 17:04:07 -0600
Subject: [PATCH 2/2] Issue #1089908: fixed another function name

---
 og_statistics.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/og_statistics.module b/og_statistics.module
index 12804d7..10f1ae7 100644
--- a/og_statistics.module
+++ b/og_statistics.module
@@ -373,7 +373,7 @@ function og_statistics_delete_record($gid) {
  * @param $nids
  *  A list of nids to recalc the records.
  */
-function og_statistcs_recalc($nids = array()) {
+function og_statistics_recalc($nids = array()) {
   foreach ($nids as $nid) {
     // All statistics are set to zero.
     $stat = array(
-- 
1.7.3.2

