Skip to content

Commit

Permalink
Merge pull request #20 from gregmoser/patch-1
Browse files Browse the repository at this point in the history
Fixes sitemap generation issue
  • Loading branch information
Grant Shepert committed Feb 17, 2014
2 parents 91cfa90 + 8597b7f commit c5c1e1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions process/controllers/main.cfc
Expand Up @@ -44,10 +44,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<cfset sitemapsObject.save() />

<cfif sitemapsObject.getValue('location') eq "web">
<cfset filename = "#expandPath(application.configBean.getContext())#/sitemap.xml" />
<cfset filename = "#expandPath(application.configBean.getContext() & '/')#sitemap.xml" />
<cfset fileURL = "http://#siteConfig.getDomain()##rc.$.globalConfig().getContext()#/sitemap.xml" />
<cfelse>
<cfset filename ="#expandPath(application.configBean.getContext())#/#site#/sitemap.xml" />
<cfset filename ="#expandPath(application.configBean.getContext() & '/')##site#/sitemap.xml" />
<cfset fileURL = "http://#siteConfig.getDomain()##rc.$.globalConfig().getContext()#/#site#/sitemap.xml" />
</cfif>
<cftry>
Expand Down Expand Up @@ -82,4 +82,4 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<cfset rc.time = (getTickCount()-tickCount) />

</cffunction>
</cfcomponent>
</cfcomponent>

0 comments on commit c5c1e1c

Please sign in to comment.