[livejournal] r7753: RT #2194 - Forgot to check if they actua...

Jun 21, 2006 21:17


Committer: bcoffeltRT #2194 - Forgot to check if they actually reached their max.

U trunk/htdocs/editpics.bml

Modified: trunk/htdocs/editpics.bml
===================================================================
--- trunk/htdocs/editpics.bml 2006-06-21 20:36:08 UTC (rev 7752)
+++ trunk/htdocs/editpics.bml 2006-06-21 21:17:17 UTC (rev 7753)
@@ -454,8 +454,8 @@
}

## see if they have too many pictures uploaded
+ my $inline;
if (scalar @userpics >= $max) {
- my $inline;
if ($inline .= LJ::run_hook("cprod_inline", $u, 'EditPicsMax')) {
return $err->($inline . LJ::help_icon('userpics', " ", ""));
} else {
@@ -628,11 +628,13 @@
};

$body .= BML::ml('.piclimitstatus', {current => scalar @userpics, max => $max});
- my $inline;
- if ($inline .= LJ::run_hook("cprod_inline", $u, 'EditPics')) {
- $body .= $inline;
- } else {
- $body .= "
".BML::ml('cprod.editpics.text7.v1',{ "num" => $max })."
";
+ if (scalar @userpics >= $max) {
+ my $inline;
+ if ($inline .= LJ::run_hook("cprod_inline", $u, 'EditPics')) {
+ $body .= $inline;
+ } else {
+ $body .= "
".BML::ml('cprod.editpics.text7.v1',{ "num" => $max })."
";
+ }
}
$body .= "";

Previous post Next post
Up