--- beautytips.install.orig     2009-07-03 14:24:08.000000000 +0200
+++ beautytips.install  2009-07-03 14:25:00.000000000 +0200
@@ -11,7 +11,10 @@
  */
 function beautytips_install() {
   $path = drupal_get_path('module', 'beautytips') .'/other_libs/excanvas_r3';
+  drupal_load('module', 'beautytips');
+  $link_readme = l('BeautyTips Readme.txt',
+                   drupal_get_path('module', 'beautytips')) .'/README.txt';
   if (!count(file_scan_directory($path, 'excanvas.js', array('.', '..', 'CVS'), 0, FALSE))) {
-    drupal_set_message('WARNING! In order for BeautyTips to function correctly in Internet Explorer, the Excanvas library needs to be added.  (See the BeautyTips Readme.txt file for more information.)', $type = 'warning');
+    drupal_set_message(t('WARNING! In order for BeautyTips to function correctly in Internet Explorer, the Excanvas library needs to be added.  (See the !readme_file for more information.)', array('!readme_file' => $link_readme)), $type = 'warning');
   }
 }
CommentFileSizeAuthor
beautytips.install_readmelink.patch1000 bytesjcdenton.dm

Comments

kleinmp’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Active » Closed (fixed)

Thanks, good patch. I committed it to the dev version.