diff -u b/core/modules/color/color.install b/core/modules/color/color.install
--- b/core/modules/color/color.install
+++ b/core/modules/color/color.install
@@ -10,6 +10,7 @@
*/
function color_requirements($phase) {
$requirements = array();
+ $t = get_t();
if ($phase == 'runtime') {
// Check for the PHP GD library.
@@ -22,17 +23,17 @@
// Check for PNG support.
if (!function_exists('imagecreatefrompng')) {
$requirements['color_gd']['severity'] = REQUIREMENT_WARNING;
- $requirements['color_gd']['description'] = get_t('The GD library for PHP is enabled, but was compiled without PNG support. Check the PHP image documentation for information on how to correct this.', array('@url' => 'http://www.php.net/manual/ref.image.php'));
+ $requirements['color_gd']['description'] = $t('The GD library for PHP is enabled, but was compiled without PNG support. Check the PHP image documentation for information on how to correct this.', array('@url' => 'http://www.php.net/manual/ref.image.php'));
}
}
else {
$requirements['color_gd'] = array(
- 'value' => get_t('Not installed'),
+ 'value' => $t('Not installed'),
'severity' => REQUIREMENT_ERROR,
- 'description' => get_t('The GD library for PHP is missing or outdated. Check the PHP image documentation for information on how to correct this.', array('@url' => 'http://www.php.net/manual/book.image.php')),
+ 'description' => $t('The GD library for PHP is missing or outdated. Check the PHP image documentation for information on how to correct this.', array('@url' => 'http://www.php.net/manual/book.image.php')),
);
}
- $requirements['color_gd']['title'] = get_t('GD library PNG support');
+ $requirements['color_gd']['title'] = $t('GD library PNG support');
}
return $requirements;