Fix some code review bugs
[project/fckeditor.git] / fckeditor.module
index 7572d38..c934bd9 100644 (file)
@@ -579,7 +579,7 @@ function fckeditor_process_textarea($element) {
     //convert contents to HTML if necessary
     if ($conf['autofixplaintext'] == 't') {
       module_load_include('lib.inc', 'fckeditor');
-      if(fckeditor_is_plaintext($element['#value'])) {
+      if (fckeditor_is_plaintext($element['#value'])) {
         $element['#value'] = _filter_autop($element['#value']);
       }
     }
@@ -1141,17 +1141,17 @@ function fckeditor_get_nodetype($get_q) {
 }
 
 function fckeditor_path_to_theme() {
-       global $theme_key;
-       static $themepath;
+  global $theme_key;
+  static $themepath;
   
-       if(empty($themepath) && !empty($theme_key)) {
-         $themepath = drupal_get_path('theme', $theme_key);
-       }
+  if (empty($themepath) && !empty($theme_key)) {
+    $themepath = drupal_get_path('theme', $theme_key);
+  }
 
   // fall back
-  if(empty($themepath)) {
+  if (empty($themepath)) {
     return path_to_theme();
   }
   
-       return $themepath;
+  return $themepath;
 }