diff --git a/services/tinypng.inc b/services/tinypng.inc index 8211ce2..c7c002e 100644 --- a/services/tinypng.inc +++ b/services/tinypng.inc @@ -80,12 +80,12 @@ function imageapi_optimize_services_tinypng($image, $dst) { // Check if you have curl loaded. if (!function_exists('curl_init')) { - drupal_set_message(t('ImageAPI Optimize TinyPNG service requires PHP curl library. Please check that php_curl extension is enabled', 'warning', FALSE)); + drupal_set_message(t('ImageAPI Optimize TinyPNG service requires PHP curl library. Please check that php_curl extension is enabled'), 'warning', FALSE); } // Check if json is available. if (!function_exists('json_decode')) { - drupal_set_message(t('ImageAPI Optimize TinyPNG service requires PHP json support', 'warning', FALSE)); + drupal_set_message(t('ImageAPI Optimize TinyPNG service requires PHP json support'), 'warning', FALSE); } $filepath = drupal_realpath($dst); @@ -131,7 +131,7 @@ function imageapi_optimize_services_tinypng($image, $dst) { } // Something went wrong :( - drupal_set_message(t('TinyPNG.com could not process your rquest for @file. Error code = @error - @msg', array('@file' => $filepath, '@error' => $json['error'], '@msg' => $json['message'])), 'warning'); + drupal_set_message(t('TinyPNG.com could not process your request for @file. Error code = @error - @msg', array('@file' => $filepath, '@error' => $json['error'], '@msg' => $json['message'])), 'warning'); curl_close($request); return FALSE; }