diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 5bbbbdd84..34c8a8997 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -8,6 +8,14 @@ versions. Be sure to heed the warnings contained herein as they will save you many hours of grief. +4.9.4 +-------------------------------------------------------------------- + * The "extras" property in the config file has been renamed to + "extrasURL". You also need to add an "extrasPath" to your + config file that points to the server path of your extras + folder. + + 4.9.3 -------------------------------------------------------------------- * The import utilities imImport.pl and dmImport.pl have been diff --git a/etc/WebGUI.conf.original b/etc/WebGUI.conf.original index 1d41472ae..3c256b96e 100644 --- a/etc/WebGUI.conf.original +++ b/etc/WebGUI.conf.original @@ -2,10 +2,7 @@ dsn = DBI:mysql:WebGUI dbuser = webgui dbpass = password logfile = /data/webgui.log -extras = /extras +extrasURL = /extras +extrasPath = /data/WebGUI/www/extras uploadsURL = /uploads uploadsPath = /data/WebGUI/www/uploads -#excludeMacro = -#excludeWobject = -#excludeHourly = -#scripturl = / diff --git a/lib/WebGUI/Attachment.pm b/lib/WebGUI/Attachment.pm index 0c6c142bd..6db131f9d 100644 --- a/lib/WebGUI/Attachment.pm +++ b/lib/WebGUI/Attachment.pm @@ -80,7 +80,7 @@ Displays the attachment in WebGUI's standard "Attachment Box". sub box { my ($output); $output = '

'. - 'getURL.'">'.
                 $_[0]->getFilename.'$_[0]->{extras} }); $output .= ''; return $output; @@ -323,7 +323,7 @@ The number of characters wide this form element should be. There should be no re sub email { my ($output); - $output = ''; + $output = ''; $output .= text({ name=>$_[0]->{name}, value=>$_[0]->{value}, @@ -647,25 +647,25 @@ sub HTMLArea { var formObj; function openEditWindow(obj) { formObj = obj; - window.open("'.$session{config}{extras}.'/eopro.html","editWindow","width=720,height=450,resizable=1"); + window.open("'.$session{config}{extrasURL}.'/eopro.html","editWindow","width=720,height=450,resizable=1"); } '; } else { my $browser = HTTP::BrowserDetect->new($session{env}{HTTP_USER_AGENT}); if ($browser->ie && $browser->version >= 5.5) { - $output .= ''."\n"; $output .= ''."\n"; $htmlArea = 1; } elsif ($browser->ie && $browser->version >= 5) { $output .= ''; @@ -674,10 +674,10 @@ sub HTMLArea { # } elsif ($browser->gecko && $browser->version >= 1.3) { # $output .= ''; @@ -685,10 +685,10 @@ sub HTMLArea { } else { $output .= '