Author: blblack
Date: Thu Jan 24 18:03:28 2008
New Revision: 1627
URL: http://svn.slimdevices.com?rev=1627&root=Jive&view=rev
Log:
fix global_settings_file to work on win32 too (it seems fopen("foo", "r") on
win32 fails for directories ...)
Modified:
branches/7.0/jive/src/pkg/jive/share/jive/ui/Framework.lua
Modified: branches/7.0/jive/src/pkg/jive/share/jive/ui/Framework.lua
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/jive/ui/Framework.lua?rev=1627&root=Jive&r1=1626&r2=1627&view=diff
==============================================================================
--- branches/7.0/jive/src/pkg/jive/share/jive/ui/Framework.lua (original)
+++ branches/7.0/jive/src/pkg/jive/share/jive/ui/Framework.lua Thu Jan 24
18:03:28 2008
@@ -468,7 +468,8 @@
-- One-shot initialization, the first
-- time someone accesses a Global Setting
- global_settings_file = self:findFile("jive/") ..
"global_settings.txt"
+ global_settings_file =
self:findFile("jive/JiveMain.lua"):sub(1,-13)
+ .. "global_settings.txt"
local fh = io.open(global_settings_file)
if fh == nil then
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins