Index: bueditor.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/bueditor/bueditor.module,v
retrieving revision 1.30.2.8
diff -u -r1.30.2.8 bueditor.module
--- bueditor.module	19 Mar 2010 16:54:54 -0000	1.30.2.8
+++ bueditor.module	5 Jun 2010 07:51:13 -0000
@@ -301,7 +301,7 @@
     $tokens = array(
       '%BUEDITOR' => drupal_get_path('module', 'bueditor'),
       '%FILES' => file_directory_path(),
-      '%THEME' => path_to_theme()
+      '%THEME' => isset($GLOBALS['theme']) ? drupal_get_path('theme', $GLOBALS['theme']) : path_to_theme(),
     );
   }
   if ($reverse) {

