Bug: Use %HOMETOPIC% not WebHome
In the supplied TWiki docs, all references to WebHome should refer to %HOMETOPIC%, in order to be consistent with user settings, to avoid confusing end users. With a default TWiki install the number of instances the word "WebHome" is used is significantly > 0.
How to Fix
Needs to be applied just the once probably, preferably by someone with admin rights
# grep -i WebHome */*|cut -d: -f1|while read i; do mv $i $i.old; sed -e "s/WebHome/%HOMETOPIC%/g" $i.old >$i; rm $i.old; done
It could be done manually if necessary of course...
Test case
# mkdir unpack
# cd unpack
# tar zxvf ../$TWIKITARBALL
# cd data
# grep WebHome */* |wc -l
This
should come back with 0 on a "just installed" TWiki Server, if the docs are to be consistent with user settings (and hence not confuse users).
Environment
| TWiki version: |
All Versions (Feb 03, Dec 01, Sep 09, Dec 2000, Earlier |
| TWiki plugins: |
na |
| Server OS: |
na |
| Web server: |
na |
| Perl version: |
na |
| Client OS: |
na |
| Web Browser: |
na |
--
MichaelSparks - 06 Jun 2003
Follow up
Not strictly speaking a patch, but provides a script/commandline as to how to fix this.
Category:
TWikiPatches
Fix record
I went for the manual fix for two reasons. I do not have root access at SF to run the script with the proper user and there is meta data with parent pointing to
WebHome. Changing the parent to the variable needs to be tested, e.g. there might be some issues.
--
PeterThoeny - 26 Jul 2003