? .svn
? simplepie.inc
Index: simplefeed.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simplefeed/simplefeed.module,v
retrieving revision 1.44.2.23
diff -u -p -r1.44.2.23 simplefeed.module
--- simplefeed.module	15 Oct 2008 01:36:52 -0000	1.44.2.23
+++ simplefeed.module	24 Nov 2008 19:18:33 -0000
@@ -245,7 +245,7 @@ function simplefeed_insert($node) {
   
   // download any feed items if this is enabled
   if (variable_get('simplefeed_download', 0)) {
-    simplefeed_feed_refresh($node->nid);
+    simplefeed_feed_refresh($node->nid, FALSE);
   }
 }
 
@@ -463,8 +463,14 @@ function simplefeed_cron() {
 
 /**
  * Refresh a feed, downloading any new feed items and creating nodes for them.
+ * @param nid
+ * Node id of the feed node to refresh
+ *
+ * @param redirect
+ * boolean value indicates whether or not to redirect the user to the
+ * feed node. 
  */
-function simplefeed_feed_refresh($nid = NULL) {
+function simplefeed_feed_refresh($nid = NULL, $redirect = TRUE) {
   // initialize simplepie
   // we want to do this only once and not each time per feed, which would be slower
   include_once './'. drupal_get_path('module', 'simplefeed') .'/simplepie.inc';
@@ -487,9 +493,11 @@ function simplefeed_feed_refresh($nid = 
     
     // cleanup session messages so you don't see a bazillion Feed Item created messages
     unset($_SESSION['messages']['status']);
-    drupal_set_message(t('The feed has been updated.')); 
-  
-    drupal_goto('node/'. $nid);
+    drupal_set_message(t('The feed has been updated.'));
+    
+    if ($redirect) {
+      drupal_goto('node/' . $nid);
+    }
   }
   else {
     drupal_not_found();
