LinkManagement: use defineIfNotDefined()
authorDenis Ovsienko <denis@ovsienko.info>
Thu, 21 Jun 2018 14:02:29 +0000 (15:02 +0100)
committerDenis Ovsienko <denis@ovsienko.info>
Thu, 21 Jun 2018 14:02:29 +0000 (15:02 +0100)
This way the user can redefine the constant without changing the source
code.

LinkManagement/plugins/linkmgmt.php

index 4b98b24..e488867 100644 (file)
@@ -151,7 +151,7 @@ $ophandler['object']['linkmgmt']['cytoscapemap'] = 'linkmgmt_cytoscapemap';
 
 /* ------------------------------------------------- */
 
-define('LM_MULTILINK',TRUE);
+defineIfNotDefined('LM_MULTILINK',TRUE);
 defineIfNotDefined('LM_SHOW_CONTAINERS',TRUE);
 
 /* -------------------------------------------------- */