]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed incorrect error message when saving an image without a title.
authorBrett Profitt <brett.profitt@gmail.com>
Sat, 14 Apr 2012 01:18:08 +0000 (18:18 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Sat, 14 Apr 2012 01:18:08 +0000 (18:18 -0700)
actions/photos/image/save.php
languages/en.php

index 535ae8bbb899a6c7db76ca2ace79430c5e0dadf1..1cb65b1e8048675e9f9ba3148c7acac02ec2b326 100644 (file)
@@ -16,7 +16,7 @@ $guid = get_input('guid');
 elgg_make_sticky_form('tidypics');
 
 if (empty($title)) {
-       register_error(elgg_echo("album:blank"));
+       register_error(elgg_echo("image:blank"));
        forward(REFERER);
 }
 
index b765508a61e4abf48e0d4410617646b896c91115..0f7aa8d6911535e7a2dd02767b28f9f618837db1 100644 (file)
@@ -271,17 +271,22 @@ The photo can be viewed here: %s",
                        'tidypics:not_image' => "This is not a recognized image type",
                        'tidypics:deletefailed' => "Sorry. Deletion failed.",
                        'tidypics:deleted' => "Successful deletion.",
-                       'image:downloadfailed' => "Sorry; this image is not available.",
                        'tidypics:nosettings' => "Admin of this site has not set photo album settings.",
                        'tidypics:exceed_quota' => "You have exceeded the quota set by the administrator",
                        'tidypics:cannot_upload_exceeds_quota' => 'Image not uploaded. File size exceeds available quota.',
-                       'images:notedited' => "Not all images were successfully updated",
+
                        'album:none' => "No albums have been created yet.",
                        'album:uploadfailed' => "Sorry; we could not save your album.",
                        'album:deletefailed' => "Your album could not be deleted.",
                        'album:blank' => "Please give this album a title.",
                        'album:invalid_album' => 'Invalid album',
                        'album:cannot_save_cover_image' => 'Cannot save cover image',
+
+                       'image:downloadfailed' => "Sorry; this image is not available.",
+                       'images:notedited' => "Not all images were successfully updated",
+                       'image:blank' => 'Please give this image a title.',
+                       'image:error' => 'Could not save image.',
+
                        'tidypics:upgrade:failed' => "The upgrade of Tidypics failed", 
 );