File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ public void SetRepositoryFolders(int ModuleId)
478478 }
479479
480480 // Keep backward compatibility for upgraded modules that contains some customized storage locations
481- if ( ! string . IsNullOrEmpty ( settings [ "folderlocation" ] . ToString ( ) ) &&
481+ if ( ! string . IsNullOrEmpty ( Convert . ToString ( settings [ "folderlocation" ] ) ) &&
482482 settings [ "folderlocation" ] . ToString ( ) != PortalSettings . Current . HomeDirectoryMapPath + DefaultFolderLocationSubPath )
483483 {
484484 g_ApprovedFolder = settings [ "folderlocation" ] . ToString ( ) ;
@@ -487,7 +487,7 @@ public void SetRepositoryFolders(int ModuleId)
487487 {
488488 g_ApprovedFolder = HttpContext . Current . Server . MapPath ( _portalSettings . HomeDirectory ) + DefaultFolderLocationSubPath ;
489489 }
490- if ( ! string . IsNullOrEmpty ( settings [ "pendinglocation" ] . ToString ( ) ) &&
490+ if ( ! string . IsNullOrEmpty ( Convert . ToString ( settings [ "pendinglocation" ] ) ) &&
491491 settings [ "pendinglocation" ] . ToString ( ) != PortalSettings . Current . HomeDirectoryMapPath + DefaultPendingFolderLocationSubPath )
492492 {
493493 g_UnApprovedFolder = settings [ "pendinglocation" ] . ToString ( ) ;
@@ -496,7 +496,7 @@ public void SetRepositoryFolders(int ModuleId)
496496 {
497497 g_UnApprovedFolder = HttpContext . Current . Server . MapPath ( _portalSettings . HomeDirectory ) + DefaultPendingFolderLocationSubPath ;
498498 }
499- if ( ! string . IsNullOrEmpty ( settings [ "anonymouslocation" ] . ToString ( ) ) &&
499+ if ( ! string . IsNullOrEmpty ( Convert . ToString ( settings [ "anonymouslocation" ] ) ) &&
500500 settings [ "anonymouslocation" ] . ToString ( ) != PortalSettings . Current . HomeDirectoryMapPath + DefaultAnonymousFolderLocationSubPath )
501501 {
502502 g_AnonymousFolder = settings [ "anonymouslocation" ] . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -855,7 +855,7 @@ private void Page_Load(System.Object sender, System.EventArgs e)
855855 }
856856
857857 // Keep backward compatibility for upgraded modules that contains some customized storage locations
858- if ( ! string . IsNullOrEmpty ( settings [ "folderlocation" ] . ToString ( ) ) &&
858+ if ( ! string . IsNullOrEmpty ( Convert . ToString ( settings [ "folderlocation" ] ) ) &&
859859 settings [ "folderlocation" ] . ToString ( ) != PortalSettings . Current . HomeDirectoryMapPath + busController . DefaultFolderLocationSubPath )
860860 {
861861 txtFolderLocation . Text = settings [ "folderlocation" ] . ToString ( ) ;
@@ -877,7 +877,7 @@ private void Page_Load(System.Object sender, System.EventArgs e)
877877 cbUserFolders . Checked = false ;
878878 }
879879
880- if ( ! string . IsNullOrEmpty ( settings [ "pendinglocation" ] . ToString ( ) ) &&
880+ if ( ! string . IsNullOrEmpty ( Convert . ToString ( settings [ "pendinglocation" ] ) ) &&
881881 settings [ "pendinglocation" ] . ToString ( ) != PortalSettings . Current . HomeDirectoryMapPath + busController . DefaultPendingFolderLocationSubPath )
882882 {
883883 txtPendingLocation . Text = settings [ "pendinglocation" ] . ToString ( ) ;
@@ -888,7 +888,7 @@ private void Page_Load(System.Object sender, System.EventArgs e)
888888 }
889889 txtPendingLocation . ReadOnly = true ;
890890
891- if ( ! string . IsNullOrEmpty ( settings [ "anonymouslocation" ] . ToString ( ) ) &&
891+ if ( ! string . IsNullOrEmpty ( Convert . ToString ( settings [ "anonymouslocation" ] ) ) &&
892892 settings [ "anonymouslocation" ] . ToString ( ) != PortalSettings . Current . HomeDirectoryMapPath + busController . DefaultAnonymousFolderLocationSubPath )
893893 {
894894 txtAnonymousLocation . Text = settings [ "anonymouslocation" ] . ToString ( ) ;
You can’t perform that action at this time.
0 commit comments