Skip to content

Commit

Permalink
avoid load check from web module LDEV-2459
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer authored Apr 14, 2021
1 parent b5ff668 commit b80325b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions core/src/main/cfml/context/admin/services.update.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
error.message="";
error.detail="";
</cfscript>
<cfadmin
action="getloaderinfo"
type="#request.adminType#"
password="#session["password"&request.adminType]#"
returnVariable="loaderInfo">
<cftry>
<cfswitch expression="#url.action2#">
<cfcase value="settings">
Expand All @@ -48,7 +43,15 @@
<cfset error.cfcatch=cfcatch>
</cfcatch>
</cftry>
<cfif request.admintype EQ "web"><cflocation url="#request.self#" addtoken="no"></cfif>
<cfif request.admintype EQ "web"><cflocation url="#request.self#" addtoken="no"></cfif>

<!--- only available for server --->
<cfadmin
action="getloaderinfo"
type="#request.adminType#"
password="#session["password"&request.adminType]#"
returnVariable="loaderInfo">

<cfset error.message="">
<cfset error.detail="">

Expand Down Expand Up @@ -409,4 +412,4 @@
<cfset stText.services.update.titleDesc2 = replaceListNoCase(stText.services.update.titleDesc2,'{min-version},{server.lucee.loaderPath}','<b>#minVersion#</b>,<b>#listDeleteAt(loaderInfo.LoaderPath,listlen(loaderInfo.LoaderPath,"\/"),"\/")#</b>')>
<p class="comment">* #replace(stText.services.update.titleDesc2,'{context}',"<b class='error'>"&#expandPath("{lucee-server}\patches")#&"</b>") #</p>

</cfoutput>
</cfoutput>

0 comments on commit b80325b

Please sign in to comment.