trying to make image form controls optionally force image file types... not quite working yet

This commit is contained in:
Roy Johnson 2006-11-07 23:47:37 +00:00
parent 9791c99d3b
commit 0ad578ffb9
4 changed files with 23 additions and 1 deletions

View file

@ -28,11 +28,19 @@ addLastExportedAs($session);
addDeletionWorkflows($session);
addRSSFromParent($session);
reorderSurveyCollateral($session);
addNewProfileSetting($session);
deleteFiles($session);
fixAds($session);
finish($session); # this line required
#--------------------------------------------------
sub addNewProfileSetting {
my $session = shift;
print "\tAdding new profile setting to force image only uploads on image form controls.\n" unless ($quiet);
$session->db->write("alter table userProfileField add column forceImageOnly int(11) default 1");
}
#--------------------------------------------------
sub deleteFiles {
my $session = shift;