Item11164: Use SystemWebName setting as default value for DIRECTEDGRAPHPLUGIN_LIBRARY
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Currently, "System.DirectedGraphPlugin" is hardcoded as the default value of DIRECTEDGRAPHPLUGIN_LIBRARY
This can cause issues for people who have renamed their System web. I suggest you use the
SystemWebName parameter to build the default value :
--- lib/Foswiki/Plugins/DirectedGraphPlugin.pm.old 2011-10-03 16:09:17.000000000 +0200
+++ lib/Foswiki/Plugins/DirectedGraphPlugin.pm 2011-10-03 16:08:53.000000000 +0200
@@ -266,7 +266,7 @@
# Get plugin library default
$libraryDefault =
Foswiki::Func::getPreferencesValue('DIRECTEDGRAPHPLUGIN_LIBRARY')
- || 'System.DirectedGraphPlugin';
+ || $Foswiki::cfg{SystemWebName}.'.DirectedGraphPlugin';
# Get plugin hideattachments default
$hideAttachDefault =
Best regards.
--
MaximeBesson - 03 Oct 2011