1
0

committing the correct minor text change

This commit is contained in:
Thomas E. Horner 2012-08-08 00:58:51 +02:00
parent 6d3fa10a91
commit b0887b2f97

View File

@ -239,7 +239,7 @@ class Gallery_Remote_Controller extends Controller {
} }
} catch (ORM_Validation_Exception $e) { } 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); $reply->send(gallery_remote::CREATE_ALBUM_FAILED);
} }
} }
@ -357,7 +357,7 @@ class Gallery_Remote_Controller extends Controller {
catch (ORM_Validation_Exception $e) { catch (ORM_Validation_Exception $e) {
$validation = $e->validation; $validation = $e->validation;
//print_r($validation->errors()); exit; //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 $reply->send(gallery_remote::UPLOAD_PHOTO_FAIL); //FIXME gallery remote ignores this return value and continues to wait
} }
catch (Exception $e) { catch (Exception $e) {