--- jquery_update.module.orig	2009-04-23 20:25:16.000000000 +0200
+++ jquery_update.module	2009-05-03 19:58:33.500000000 +0200
@@ -16,15 +16,11 @@ define('JQUERY_UPDATE_REPLACE_PATH', dru
  */
 function jquery_update_get_replacements() {
   return array(
-    'module' => array(
       'misc/farbtastic/farbtastic.js' => 'farbtastic.js',
       'misc/teaser.js' => 'teaser.js',
       'misc/ahah.js' => 'ahah.js',
       'misc/jquery.form.js' => 'jquery.form.js',
-    ),
-    'core' => array(
       'misc/tabledrag.js' => 'tabledrag.js',
-    ),
   );
 }
 
@@ -65,15 +61,13 @@ function jquery_update_preprocess_page(&
       unset($scripts['core']['misc/jquery.js']);
 
       // Loop through each of the required replacements.
-      foreach (jquery_update_get_replacements() as $type => $replacements) {
-        foreach ($replacements as $find => $replace) {
-          // If the file to replace is loaded on this page...
-          if (isset($scripts[$type][$find])) {
-            // Create a new entry for the replacement file, and unset the original one.
-            $replace = JQUERY_UPDATE_REPLACE_PATH .'/'. $replace;
-            $scripts[$type][$replace] = $scripts[$type][$find];
-            unset($scripts[$type][$find]);
-          }
+      foreach (jquery_update_get_replacements() as $find => $replace) {
+        // If the file to replace is loaded on this page...
+        if (isset($scripts['module'][$find])) {
+          // Create a new entry for the replacement file, and unset the original one.
+          $replace = JQUERY_UPDATE_REPLACE_PATH .'/'. $replace;
+          $scripts['module'][$replace] = $scripts['module'][$find];
+          unset($scripts['module'][$find]);
         }
       }
 
