Fix a bug in the Story when handling images of different sizes. Add a

photoWidth property to the StoryArchive, and resize all newly uploaded pictures
to a Story.
This commit is contained in:
Colin Kuskie 2009-06-08 21:51:33 +00:00
parent 56fa667f9d
commit fcad3a112d
6 changed files with 50 additions and 4 deletions

View file

@ -6,7 +6,8 @@
- fixed: #10262: Default Inbox View Template: Mismatch in HTML for upper and lower page navigation
- fixed rfe #10474: Improve error message for template errors
- removed hardcoding of administer.js and survey.css hardcoded extras paths.
- fixed Error message when you try to send a message from the Inbox, but none of your friends allow private messaging.
- fixed: Error message when you try to send a message from the Inbox, but none of your friends allow private messaging.
- fixed: Images uploaded to a Story should all be the same width so the YUI carousel does not break.
7.7.9
- fixed #10266: Public Profile overrides Able to be friend

View file

@ -29,6 +29,7 @@ my $quiet; # this line required
my $session = start(); # this line required
addStoryPhotoWidth($session);
# upgrade functions go here
@ -44,6 +45,18 @@ finish($session); # this line required
# print "DONE!\n" unless $quiet;
#}
#----------------------------------------------------------------------------
# Describe what our function does
sub addStoryPhotoWidth {
my $session = shift;
print "\tAdd a width parameter to the StoryManager... " unless $quiet;
# and here's our code
$session->db->write(<<EOSQL);
alter table StoryArchive add column photoWidth int(11)
EOSQL
print "DONE!\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------