Commit d662a131 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Default name value.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1002 b35dd754-fafc-0310-a699-88a17e54d16e
parent e60f3eeb
......@@ -246,7 +246,13 @@ public class PluginManager {
* @return the plugin's name.
*/
public String getName(Plugin plugin) {
return getElementValue(plugin, "/plugin/name");
String name = getElementValue(plugin, "/plugin/name");
if (name != null) {
return name;
}
else {
return pluginDirs.get(plugin).getName();
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment