@@ -688,29 +688,22 @@ private void Page_Load(System.Object sender, System.EventArgs e)
688688 // default value
689689 }
690690
691- if ( ! string . IsNullOrEmpty ( Convert . ToString ( settings [ "folderlocation" ] ) ) ) {
692- txtFolderLocation . Text = Convert . ToString ( settings [ "folderlocation" ] ) ;
693- } else {
694- txtFolderLocation . Text = Request . MapPath ( _portalSettings . HomeDirectory ) + "Repository" ;
695- }
691+ txtFolderLocation . Text = Request . MapPath ( _portalSettings . HomeDirectory ) + "Repository" ;
692+ txtFolderLocation . ReadOnly = true ;
693+
696694
697695 if ( ! string . IsNullOrEmpty ( Convert . ToString ( settings [ "userfolders" ] ) ) ) {
698696 cbUserFolders . Checked = bool . Parse ( settings [ "userfolders" ] . ToString ( ) ) ;
699697 } else {
700698 cbUserFolders . Checked = false ;
701699 }
702700
703- if ( ! string . IsNullOrEmpty ( Convert . ToString ( settings [ "pendinglocation" ] ) ) ) {
704- txtPendingLocation . Text = Convert . ToString ( settings [ "pendinglocation" ] ) ;
705- } else {
706- txtPendingLocation . Text = Request . MapPath ( _portalSettings . HomeDirectory ) + "Repository" ;
707- }
701+ txtPendingLocation . Text = Request . MapPath ( _portalSettings . HomeDirectory ) + "Repository\\ Pending" ;
702+ txtPendingLocation . ReadOnly = true ;
708703
709- if ( ! string . IsNullOrEmpty ( Convert . ToString ( settings [ "anonymouslocation" ] ) ) ) {
710- txtAnonymousLocation . Text = Convert . ToString ( settings [ "anonymouslocation" ] ) ;
711- } else {
712- txtAnonymousLocation . Text = Request . MapPath ( _portalSettings . HomeDirectory ) + "Repository" ;
713- }
704+ txtAnonymousLocation . Text = Request . MapPath ( _portalSettings . HomeDirectory ) + "Repository\\ Anonymous" ;
705+ txtAnonymousLocation . ReadOnly = true ;
706+
714707
715708 // only HOST account can modify file locations
716709 if ( UserInfo . IsSuperUser ) {
@@ -935,10 +928,7 @@ public override void UpdateSettings()
935928
936929 // double check to make sure the person submitting the Update is indeed a SuperUser
937930 if ( UserInfo . IsSuperUser ) {
938- objModules . UpdateModuleSetting ( ModuleId , "folderlocation" , txtFolderLocation . Text . Trim ( ) ) ;
939931 objModules . UpdateModuleSetting ( ModuleId , "userfolders" , cbUserFolders . Checked . ToString ( ) ) ;
940- objModules . UpdateModuleSetting ( ModuleId , "pendinglocation" , txtPendingLocation . Text . Trim ( ) ) ;
941- objModules . UpdateModuleSetting ( ModuleId , "anonymouslocation" , txtAnonymousLocation . Text . Trim ( ) ) ;
942932 }
943933
944934 objModules . UpdateModuleSetting ( ModuleId , "noimage" , ctlURL . Url . ToString ( ) ) ;
0 commit comments