Index: wymeditor.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wymeditor/wymeditor.module,v
retrieving revision 1.2.2.10
diff -u -p -r1.2.2.10 wymeditor.module
--- wymeditor.module	6 Jun 2008 16:34:08 -0000	1.2.2.10
+++ wymeditor.module	10 Jun 2008 05:13:28 -0000
@@ -25,7 +25,8 @@ function wymeditor_form_alter($form_id, 
         $filename[] = $rid;
         $rids[] = $rid;
       }
-    } else {
+    }
+    else {
       foreach ($user->roles as $rid => $role) {
         $filename[] = $rid;
         $rids[] = $rid;
@@ -51,7 +52,8 @@ function wymeditor_form_alter($form_id, 
     }
     if (!file_exists(file_directory_path() .'/js/jquery.wymeditor.init.'. implode('-', $filename) .'.js')) {
       $js_file = wymeditor_javascript($button_enable, $buttons, $plugins, $filename);
-    } else {
+    }
+    else {
       $js_file = file_directory_path() .'/js/jquery.wymeditor.init.'. implode('-', $filename) .'.js';
     }
     // add this file for run after the filters-format.js
@@ -256,7 +258,8 @@ function wymeditor_perm() {
 function _wymeditor_get_profiles($rid = null) {
   if (isset($rid)) {
     $result = db_query('SELECT * FROM {wymeditor_profiles} WHERE rid=%d  ORDER BY rid', $rid);
-  } else {
+  }
+  else {
     $result = db_query('SELECT * FROM {wymeditor_profiles} ORDER BY rid');
   }
   while ($p = db_fetch_object($result)) {
@@ -373,7 +376,7 @@ function wymeditor_javascript($buttons_e
   if ($plugin > 0) $js_plugin =  implode('', $plugin);
   $dropdown = array_search('wym.dropdown();', $plugin);
   if ($dropdown !== FALSE) {
-    $boxHtml = 'containersHtml: "<select class=\'containers\'><optgroup label=\'{Containers}\'>"
+    $box_html = 'containersHtml: "<select class=\'containers\'><optgroup label=\'{Containers}\'>"
       + WYMeditor.CONTAINERS_ITEMS
       + "</optgroup></select>",
     containersItemHtml: "<option class=\'"
@@ -404,8 +407,9 @@ function wymeditor_javascript($buttons_e
       + WYMeditor.STATUS
       + "</div>"
       + "</div>",';
-  } else {
-    $boxHtml = 'boxHtml:   "<div class=\'wym_box\'>"
+  }
+  else {
+    $box_html = 'boxHtml:   "<div class=\'wym_box\'>"
       + "<div class=\'wym_area_top\'>"
       + WYMeditor.TOOLS
       + "</div>"
@@ -430,7 +434,7 @@ function wymeditor_javascript($buttons_e
   $class_remove = (!$wym_classes) ? " $('.wym_classes').remove(); " : '';
   fputs($newfile, "$.wymeditor_config = {".
     'updateSelector: ".form-submit",'.
-    $boxHtml
+    $box_html
     .'dialogImageHtml: "<script type=\'text/javascript\' src=\''. url($module_path) .'/wymeditor-image.js\'>"
        + "<body class=\'wym_dialog wym_dialog_image\'"
        + " onload=\'WYMeditor.INIT_DIALOG(" + WYMeditor.INDEX + ")\'"
@@ -478,7 +482,7 @@ function wymeditor_javascript($buttons_e
         .addClass('wym_dropdown')
         .find('h2 > span')
         .remove();".
-         $class_remove . $js_plugin
+        $class_remove . $js_plugin
     ."}
     };"
   );
@@ -505,7 +509,7 @@ function wymeditor_images($nid = -1, $op
   $path = file_directory_path();
   $node = node_load($nid);
   // if $node is null create a $node = object
-  if (!isset($node)) $node = new StdClass();
+  if (!isset($node)) $node = new stdClass();
   // Attach file previews to node object.
   if (is_array($_SESSION['file_previews']) && count($_SESSION['file_previews'])) {
     foreach ($_SESSION['file_previews'] as $fid => $file) {
@@ -526,7 +530,8 @@ function wymeditor_images($nid = -1, $op
     foreach ($node->files as $file) {
       if (strpos($file->filepath, '.tmp') !== FALSE) {
         $filepath = substr($file->filepath, strrpos($file->filepath, 'temp'));
-      } else { 
+      }
+      else { 
         $filepath = $file->filepath;
       }
       $images .= '<option value ="'. file_create_url($filepath) .'">'. $file->filename .'</option>';
