@@ -83,8 +83,8 @@ protected virtual async Task<IDescriptor> UploadSingleItemAsync(string archivePa
8383
8484 //get path to the themes directory
8585 var themesDirectory = string . Empty ;
86- if ( ! string . IsNullOrEmpty ( NopPluginDefaults . ThemesPath ) )
87- themesDirectory = _fileProvider . MapPath ( NopPluginDefaults . ThemesPath ) ;
86+ if ( ! string . IsNullOrEmpty ( NopThemeDefaults . ThemesPath ) )
87+ themesDirectory = _fileProvider . MapPath ( NopThemeDefaults . ThemesPath ) ;
8888
8989 IDescriptor descriptor = null ;
9090 string uploadedItemDirectoryName ;
@@ -112,7 +112,7 @@ protected virtual async Task<IDescriptor> UploadSingleItemAsync(string archivePa
112112
113113 //or whether it's a theme descriptor
114114 var isThemeDescriptor = entry . FullName
115- . Equals ( $ "{ uploadedItemDirectoryName } /{ NopPluginDefaults . ThemeDescriptionFileName } ", StringComparison . InvariantCultureIgnoreCase ) ;
115+ . Equals ( $ "{ uploadedItemDirectoryName } /{ NopThemeDefaults . ThemeDescriptionFileName } ", StringComparison . InvariantCultureIgnoreCase ) ;
116116
117117 if ( ! isPluginDescriptor && ! isThemeDescriptor )
118118 continue ;
@@ -180,8 +180,8 @@ protected virtual async Task<IList<IDescriptor>> UploadMultipleItemsAsync(string
180180
181181 //get path to the themes directory
182182 var themesDirectory = string . Empty ;
183- if ( ! string . IsNullOrEmpty ( NopPluginDefaults . ThemesPath ) )
184- themesDirectory = _fileProvider . MapPath ( NopPluginDefaults . ThemesPath ) ;
183+ if ( ! string . IsNullOrEmpty ( NopThemeDefaults . ThemesPath ) )
184+ themesDirectory = _fileProvider . MapPath ( NopThemeDefaults . ThemesPath ) ;
185185
186186 //get descriptors of items contained in the archive
187187 var descriptors = new List < IDescriptor > ( ) ;
@@ -204,8 +204,8 @@ protected virtual async Task<IList<IDescriptor>> UploadMultipleItemsAsync(string
204204 if ( item . Type == UploadedItemType . Plugin )
205205 descriptorPath = $ "{ itemPath } { NopPluginDefaults . DescriptionFileName } ";
206206
207- if ( item . Type == UploadedItemType . Theme && ! string . IsNullOrEmpty ( NopPluginDefaults . ThemeDescriptionFileName ) )
208- descriptorPath = $ "{ itemPath } { NopPluginDefaults . ThemeDescriptionFileName } ";
207+ if ( item . Type == UploadedItemType . Theme && ! string . IsNullOrEmpty ( NopThemeDefaults . ThemeDescriptionFileName ) )
208+ descriptorPath = $ "{ itemPath } { NopThemeDefaults . ThemeDescriptionFileName } ";
209209
210210 //try to get the descriptor entry
211211 var descriptorEntry = archive . Entries . FirstOrDefault ( entry => entry . FullName . Equals ( descriptorPath , StringComparison . InvariantCultureIgnoreCase ) ) ;
0 commit comments