Case break



  • From the forum software:

      private void csa_AfterSection(Section section, CSEventArgs e)
      {
       if(e.ApplicationType == ApplicationType.Weblog)
       {
        switch(e.State)
        {
         case ObjectState.Create:

          if(WeblogConfiguration.Instance().CreateBlogDirectories)
           WebDirectory.Create(Globals.GetSiteUrls().Locations["weblogs"] + section.ApplicationKey);

          break;

         case ObjectState.Update:

          break;

         case ObjectState.Delete:

          break;
        }
       }
      }


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.