Permalink
Browse files

committing the correct minor text change

  • Loading branch information...
1 parent 6d3fa10 commit b0887b2f97d2586b5e95fc0b70ca7baa6c484fc0 @the0ne the0ne committed Aug 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 3.0/modules/remote/controllers/gallery_remote.php
@@ -239,7 +239,7 @@ private function _new_album(&$input, &$reply) {
}
} catch (ORM_Validation_Exception $e) {
- $reply->set('status_text', t('Failed to save album with name %name.', array('name' => $name)));
+ $reply->set('status_text', t('Failed to validate album with name %name.', array('name' => $name)));
$reply->send(gallery_remote::CREATE_ALBUM_FAILED);
}
}
@@ -357,7 +357,7 @@ private function _add_item(&$input, &$reply) {
catch (ORM_Validation_Exception $e) {
$validation = $e->validation;
//print_r($validation->errors()); exit;
- $reply->set('status_text', t('Failed to validate item %item: %errors', array('item' => $filename, 'errors' => str_replace("\n", ' ', print_r($validation->errors(),true))) ));
+ $reply->set('status_text', t('Failed to save item %item: %errors', array('item' => $filename, 'errors' => str_replace("\n", ' ', print_r($validation->errors(),true))) ));
$reply->send(gallery_remote::UPLOAD_PHOTO_FAIL); //FIXME gallery remote ignores this return value and continues to wait
}
catch (Exception $e) {

0 comments on commit b0887b2

Please sign in to comment.