diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 82b4baf2c..1d37e86ca 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -7,6 +7,23 @@ upgrading from one version to the next, or even between multiple versions. Be sure to heed the warnings contained herein as they will save you many hours of grief. +4.3.0 +-------------------------------------------------------------------- + * The settings "extras", "uploadsURL", and "uploadsPath" have all + been moved to the config file to make installations easier. + This means that you must add those lines to your old + configuration files before you upgrade. See + etc/WebGUI.conf.original for details. + + * For wobject and macro developers this also means that any third- + party wobjects that use those settings, must be modified to + use the new variable name. The following is the change in + relationship: + + $session{setting}{lib} = $session{config}{extras} + $session{setting}{attachmentDirectoryWeb} = $session{config}{uploadsURL} + $session{setting}{attachmentDirectoryLocal} = $session{config}{uploadsPath} + 4.2.0 -------------------------------------------------------------------- * All Discussion properties have been reset to enable the new diff --git a/docs/upgrades/upgrade_4.2.0-4.3.0.sql b/docs/upgrades/upgrade_4.2.0-4.3.0.sql index 7af2a4b77..a95849f66 100644 --- a/docs/upgrades/upgrade_4.2.0-4.3.0.sql +++ b/docs/upgrades/upgrade_4.2.0-4.3.0.sql @@ -649,8 +649,13 @@ INSERT INTO international VALUES (555,'WebGUI',8,'Modifica il karma di questo ut INSERT INTO international VALUES (556,'WebGUI',8,'Ammontare'); INSERT INTO international VALUES (557,'WebGUI',8,'Descrizione'); INSERT INTO international VALUES (558,'WebGUI',8,'Modifica il karma dell\'utente'); - - +delete from international where namespace='WebGUI' and internationalId=129; +delete from international where namespace='WebGUI' and internationalId=132; +delete from international where namespace='WebGUI' and internationalId=131; +delete from international where namespace='WebGUI' and internationalId=128; +delete from settings where name='attachmentDirectoryLocal'; +delete from settings where name='attachmentDirectoryWeb'; +delete from settings where name='lib'; diff --git a/etc/WebGUI.conf.original b/etc/WebGUI.conf.original index 6d1c3fc82..ecb42db34 100644 --- a/etc/WebGUI.conf.original +++ b/etc/WebGUI.conf.original @@ -2,4 +2,7 @@ dsn = DBI:mysql:WebGUI dbuser = webgui dbpass = password logfile = /data/webgui.log +extras = /extras +uploadsURL = /uploads +uploadsPath = /data/WebGUI/www/uploads #scripturl = / diff --git a/lib/WebGUI/Attachment.pm b/lib/WebGUI/Attachment.pm index a11cdc17a..354f36753 100644 --- a/lib/WebGUI/Attachment.pm +++ b/lib/WebGUI/Attachment.pm @@ -115,7 +115,7 @@ sub _resizeImage { sub box { my ($output); $output = '

'. - 'getURL.'">'.
                 $_[0]->getFilename.''; $output .= ''; $output .= _subtext($subtext); @@ -335,7 +335,7 @@ sub email { $extras = shift; $subtext = shift; $size = shift || $session{setting}{textBoxSize} || 30; - $output = ''; + $output = ''; $output .= ''; $output .= _subtext($subtext); @@ -564,19 +564,19 @@ sub HTMLArea { var formObj; function openEditWindow(obj) { formObj = obj; - window.open("'.$session{setting}{lib}.'/eopro.html","editWindow","width=720,height=450,resizable=1"); + window.open("'.$session{config}{extras}.'/eopro.html","editWindow","width=720,height=450,resizable=1"); } '; } else { $output .= '