NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016747phplist applicationPlugin APIpublic17-03-13 13:1718-03-13 16:30
PlatformOSOS Version
Product Version2.11.7 
Target VersionFixed in Version2.11.8 
Summary0016747: Plugin directory PLUGIN_ROOTDIR not recognised
DescriptionProblem found in SVN trunk.

The plugin directory in PLUGIN_ROOTDIR is not used because PLUGIN_ROOTDIRS is always defined, even as an empty string.

In init.php line 139
if (!defined('PLUGIN_ROOTDIRS')) define('PLUGIN_ROOTDIRS','');

In pluginlib.php line 10

$pluginRootDirs = array();
if (defined('PLUGIN_ROOTDIRS')) {
  $pluginRootDirs = explode(';',PLUGIN_ROOTDIRS);
} else {
  $pluginRootDirs = array(PLUGIN_ROOTDIR);

So PLUGIN_ROOTDIR is never used.
The solution is to remove the line from init.php
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
michiel (manager)
18-03-13 16:30

I took out the else, and append the PLUGIN_ROOTDIR always, just so it's always used

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker