Browse Source

Remove spaces from default plugin config filename

LukePulverenti Luke Pulverenti luke pulverenti 13 years ago
parent
commit
5a89c00ac8
1 changed files with 10 additions and 4 deletions
  1. 10 4
      MediaBrowser.Common/Plugins/BasePlugin.cs

+ 10 - 4
MediaBrowser.Common/Plugins/BasePlugin.cs

@@ -1,8 +1,8 @@
-using System;
-using System.IO;
-using MediaBrowser.Common.Kernel;
+using MediaBrowser.Common.Kernel;
 using MediaBrowser.Common.Serialization;
 using MediaBrowser.Common.Serialization;
 using MediaBrowser.Model.Plugins;
 using MediaBrowser.Model.Plugins;
+using System;
+using System.IO;
 
 
 namespace MediaBrowser.Common.Plugins
 namespace MediaBrowser.Common.Plugins
 {
 {
@@ -110,7 +110,13 @@ namespace MediaBrowser.Common.Plugins
         /// <summary>
         /// <summary>
         /// Gets the name of the configuration file. Subclasses should override
         /// Gets the name of the configuration file. Subclasses should override
         /// </summary>
         /// </summary>
-        public virtual string ConfigurationFileName { get { return Name + ".xml"; } }
+        public virtual string ConfigurationFileName
+        {
+            get
+            {
+                return Name.Replace(" ", string.Empty) + ".xml";
+            }
+        }
 
 
         /// <summary>
         /// <summary>
         /// Gets the full path to the configuration file
         /// Gets the full path to the configuration file