Skip to content

Commit

Permalink
more boxlang compat
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Oct 24, 2024
1 parent f6c3043 commit 6eba7fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion system/core/util/CFMLEngine.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ component {
* Verify if this is a lucee server
*/
boolean function isLucee(){
return structKeyExists( server, "lucee" );
return server.keyExists( "lucee" ) && !server.keyExists( "boxlang" );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion test-harness/Application.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ component {
}
}

if( url.keyExists( "fwreinit" ) ){
if( url.keyExists( "fwreinit" ) && getFunctionList().keyExists( "ormReload" ) ){
ormReload();
}

Expand Down
2 changes: 1 addition & 1 deletion test-harness/layouts/Main.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>#server.keyExists( "lucee" ) ? "lucee" : "adobe"# #server.coldfusion.productVersion# - Welcome to Coldbox!</title>
<title>#controller.getCFMLEngine().getEngine()# #controller.getCFMLEngine().getFullVersion()# - Welcome to Coldbox!</title>
<meta name="description" content="ColdBox Application Template">
<meta name="author" content="Ortus Solutions, Corp">
<!---Base URL --->
Expand Down

0 comments on commit 6eba7fd

Please sign in to comment.