=== modified file 'sites/all/modules/bueditor/bueditor.install'
--- sites/all/modules/bueditor/bueditor.install	2010-03-22 04:14:06 +0000
+++ sites/all/modules/bueditor/bueditor.install	2010-03-25 02:11:23 +0000
@@ -214,6 +214,7 @@
   db_change_field($ret, 'bueditor_editors', 'librarypath', 'librarypath', $librarypath);
   //scan library directories for js files and insert them into librarypath field.
   $files = array('%BUEDITOR/library' => '%BUEDITOR/library/bue.min.default.js');
+  require_once(drupal_get_path('module', 'bueditor') . '/bueditor.module');
   foreach (bueditor_editors('all') as $eid => $editor) {
     $dir = $editor->librarypath;
     if (!isset($files[$dir])) {

