Skip to content

Commit 29c7f1f

Browse files
authored
Merge pull request #1492 from cfwheels/architecture-3.0
Architecture 3.0
2 parents 50dfd35 + 76bed07 commit 29c7f1f

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

public/Application.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ component output="false" {
5353
// Put environment vars into env struct
5454
if ( !structKeyExists(this,"env") ) {
5555
this.env = {};
56-
envFilePath = this.appDir & ".env";
56+
envFilePath = this.appDir & "../.env";
5757
if (fileExists(envFilePath)) {
5858
envStruct = {};
5959

vendor/wheels/Controller.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ component output="false" displayName="Controller" extends="wheels.Global"{
132132
&& StructKeyExists(application, "wheels")
133133
&& StructKeyExists(application.wheels, "viewPath")
134134
) {
135-
include "/wheels/tests/_assets/views/helpers.cfm";
135+
include "#application.wheels.viewPath#/helpers.cfm";
136136
}
137137

138138
/**

vendor/wheels/Global.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ component output="false" {
161161
}
162162
}
163163

164-
public void function $location(boolean delay){
164+
public void function $location(boolean delay = false){
165165
StructDelete(arguments, "$args", false);
166166
if(NOT arguments.delay){
167167
StructDelete(arguments, "delay", false);

vendor/wheels/events/onerror/cfmlerror.cfm

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,22 @@
9191
</cfif>
9292
<!--- always skip cause since it's just a copy of rootCause anyway --->
9393
<cfset local.skip = ListAppend(local.skip, "exception.cause")>
94+
<cfset local.scopeMap = {
95+
"CGI": CGI,
96+
"Form": Form,
97+
"URL": URL,
98+
"Application": Application,
99+
"Session": Session,
100+
"Request": Request,
101+
"Cookie": Cookie,
102+
"Arguments.Exception": Arguments.Exception
103+
}>
94104
<h1>Details</h1>
95105
<cfloop list="#local.scopes#" index="local.i">
96106
<cfset local.scopeName = ListLast(local.i, ".")>
97107
<cfif NOT ListFindNoCase(local.skip, local.scopeName) AND IsDefined(local.scopeName)>
98108
<cftry>
99-
<cfset local.scope = Evaluate(local.i)>
109+
<cfset local.scope = local.scopeMap[local.i]>
100110
<cfif IsStruct(local.scope)>
101111
<p>
102112
<strong>#local.scopeName#</strong>

0 commit comments

Comments
 (0)