From 82c84b70005084f67d333af73074925c3e50db77 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 17 Dec 2002 04:42:12 +0000 Subject: [PATCH] fixed bug 654227 --- docs/gotcha.txt | 8 ++++++++ etc/WebGUI.conf.original | 7 ++----- lib/WebGUI/Attachment.pm | 4 ++-- lib/WebGUI/Form.pm | 22 +++++++++++----------- lib/WebGUI/Icon.pm | 26 +++++++++++++------------- lib/WebGUI/Macro/Extras.pm | 2 +- lib/WebGUI/Operation/Collateral.pm | 4 ++-- lib/WebGUI/Operation/International.pm | 5 ++--- lib/WebGUI/Operation/Page.pm | 2 +- lib/WebGUI/Session.pm | 3 +++ lib/WebGUI/Style.pm | 2 +- lib/WebGUI/Wobject/Poll.pm | 2 +- 12 files changed, 47 insertions(+), 40 deletions(-) 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 .= '