TWiki::Func::getScriptUrl doesn't work when current twiki web is not working as a master web. Refer
TWiki:Codev.ReadOnlyAndMirrorWebs
for the details. I changed TWiki::Func::getScriptUrl to TWiki::Func::getMasterWebScriptUrl
--
TWiki:Main/YaojunFei
- 2012-09-26
Thanks Yaojun.
Plugins should be maintained so that they can be installed on older and newer TWiki versions. This is especially true for core plugins. Please call TWiki::Func::getScriptUrl or TWiki::Func::getMasterWebScriptUrl conditionally based on $TWiki::Plugins::VERSION.
I have seen you checked in so far into trunk. This is a core plugin, e.g. shipped with TWiki release. Please specify if only trunk feature or also TWiki-5.1 branch. Extension enhancements are typically done in both. But don't do this weekend in branch due to release build we have this weekend.
Once done, please set to "Waiting for release" so that it can be tracked properly for the next release.
--
TWiki:Main.PeterThoeny
- 2012-10-06
Call TWiki::Func::getMasterWebScriptUrl only if $TWiki::Plugins::VERSION >= 1.4
--
TWiki:Main.YaojunFei
- 2012-10-08
TWiki::Func::getMasterWebScriptUrl() is not really part of $TWiki::Plugins::VERSION 1.4. I use "defined(&TWiki::Func::getContentMode)" instead, because if TWiki::Func::getContentMode() is defined, TWiki::Func::getMasterWebScriptUrl() must exist also.
--
TWiki:Main.YaojunFei
- 2012-10-08