Item11164: Use SystemWebName setting as default value for DIRECTEDGRAPHPLUGIN_LIBRARY

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: DirectedGraphPlugin
Branches: trunk
Reported By: MaximeBesson
Waiting For:
Last Change By: GeorgeClark
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

 

ItemTemplate edit

Summary Use SystemWebName setting as default value for DIRECTEDGRAPHPLUGIN_LIBRARY
ReportedBy MaximeBesson
Codebase 1.1.3, trunk
SVN Range
AppliesTo Extension
Component DirectedGraphPlugin
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins DirectedGraphPlugin:4af663e22dec
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches trunk
trunkCheckins DirectedGraphPlugin:4af663e22dec
Release01x01Checkins
Topic revision: r3 - 21 Dec 2013, GeorgeClark - This page was cached on 12 May 2020 - 18:34.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy