Index: webfm.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/webfm/webfm.module,v
retrieving revision 1.30
diff -u -r1.30 webfm.module
--- webfm.module	9 Dec 2008 18:24:58 -0000	1.30
+++ webfm.module	2 Feb 2009 13:15:47 -0000
@@ -1687,7 +1687,7 @@
  * Function to pass base_url, icon directory, debug and cleanurl flags
  */
 function webfm_inline_js($base_url, $base_path, $clean_url, $uid) {
-  $js = '<script type="text/javascript">function getBaseUrl(){return '.drupal_to_js($base_url).';} function getBasePath(){return '.drupal_to_js($base_path).';} function getWebfmIconDir(){return '.drupal_to_js($base_url."/".variable_get('webfm_icon_dir','')).';} function getWebfmCleanUrl(){return '.drupal_to_js($clean_url).'; }function getWebfmIETreeOffset(){return '.drupal_to_js(variable_get('webfm_ie_dd_tree_offset', '')).';}function getWebfmIEListOffset(){return '.drupal_to_js(variable_get('webfm_ie_dd_list_offset', '')).';} function getWebfmUid(){return '.drupal_to_js($uid).';} function getWebfmDateFormat(){return '.drupal_to_js(variable_get('webfm_date_format', WEBFM_DATE_FORMAT_DAY)).';} function getWebfmMetaName(){return '.drupal_to_js(variable_get('webfm_display_title', '')).';}</script>' ;
+  $js = '<script type="text/javascript">function getBaseUrl(){return '.drupal_to_js($base_url).';} function getBasePath(){return '.drupal_to_js($base_path).';} function getWebfmIconDir(){return '.drupal_to_js($base_url."/".variable_get('webfm_icon_dir', drupal_get_path('module', 'webfm') . '/image/icon')).';} function getWebfmCleanUrl(){return '.drupal_to_js($clean_url).'; }function getWebfmIETreeOffset(){return '.drupal_to_js(variable_get('webfm_ie_dd_tree_offset', '')).';}function getWebfmIEListOffset(){return '.drupal_to_js(variable_get('webfm_ie_dd_list_offset', '')).';} function getWebfmUid(){return '.drupal_to_js($uid).';} function getWebfmDateFormat(){return '.drupal_to_js(variable_get('webfm_date_format', WEBFM_DATE_FORMAT_DAY)).';} function getWebfmMetaName(){return '.drupal_to_js(variable_get('webfm_display_title', '')).';}</script>' ;
   drupal_set_html_head($js);
   return $js;
 }
Index: webfm_theme.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/webfm/webfm_theme.inc,v
retrieving revision 1.3
diff -u -r1.3 webfm_theme.inc
--- webfm_theme.inc	2 Dec 2008 17:53:50 -0000	1.3
+++ webfm_theme.inc	2 Feb 2009 13:15:47 -0000
@@ -15,7 +15,7 @@
   $rows = array();
   foreach ($files as $file) {
     // 0 =inline : 1 = attach
-    $icon_path = $base_url.'/'.variable_get('webfm_icon_dir', '').'/'._webfm_get_icon($file->e);
+    $icon_path = $base_url.'/'.variable_get('webfm_icon_dir', drupal_get_path('module', 'webfm') . '/image/icon').'/'._webfm_get_icon($file->e);
 	  $description = '';
     if(variable_get('webfm_attach_desc', '') && !empty($file->fdesc)) {
       $description = '<div class="att-fdesc">'.$file->fdesc.'</div>';
