Index: ffmpeg_wrapper.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ffmpeg_wrapper/Attic/ffmpeg_wrapper.install,v
retrieving revision 1.1.4.3
diff -u -p -r1.1.4.3 ffmpeg_wrapper.install
--- ffmpeg_wrapper.install	5 Mar 2009 21:46:03 -0000	1.1.4.3
+++ ffmpeg_wrapper.install	28 Nov 2010 00:17:12 -0000
@@ -29,16 +29,16 @@ function ffmpeg_wrapper_install() {
  */
 function ffmpeg_wrapper_requirements($phase) {
   $requirements = array();
+  $t = get_t();
 
+  // Do not link to the settings page when module is installed from install.php
+  // as part of an installation profile.
+  $args = array('!url' => function_exists('db_result') ? l($t('Please update your settings'), 'admin/settings/ffmpeg_wrapper') : $t('Please configure FFmpeg Wrapper after installation.'));
   if (! variable_get('ffmpeg_wrapper_path', false)) {
-   $error_message = t('The path to FFmpeg is not set correctly or missing. !url',
-      array('!url' => l(t('Please update your settings'), 'admin/settings/ffmpeg_wrapper'))
-    );
+    $error_message = $t('The path to FFmpeg is not set correctly or missing. !url', $args);
   }
   else if (! file_exists(variable_get('ffmpeg_wrapper_path', false))) {
-    $error_message = t('The path that you have set to FFmpeg does not appear to be correct. !url' ,
-      array('!url' => l(t('Please update your settings'), 'admin/settings/ffmpeg_wrapper'))
-    );
+    $error_message = $t('The path that you have set to FFmpeg does not appear to be correct. !url', $args);
   }
 
   if ($error_message) {
@@ -49,20 +49,19 @@ function ffmpeg_wrapper_requirements($ph
       drupal_set_message($error_message, 'warning');
     }
     $requirements['ffmpeg_wrapper'] = array(
-      'title' => t('FFmpeg Wrapper'),
+      'title' => $t('FFmpeg Wrapper'),
       'description' => $error_message,
       'severity' => $phase == 'install' ? REQUIREMENT_WARNING : REQUIREMENT_ERROR,
-      'value' => t('Copy swfobject.js'),
+      'value' => $t('Copy swfobject.js'),
     );
   }
   elseif ($phase == 'runtime') {
     $requirements['ffmpeg_wrapper'] = array(
-      'title' => t('FFmpeg Wrapper'),
+      'title' => $t('FFmpeg Wrapper'),
       'severity' => REQUIREMENT_OK,
-      'value' => t('Installed correctly'),
+      'value' => $t('Installed correctly'),
     );
   }
 
- 
   return $requirements;
-}
\ No newline at end of file
+}
