Skip to content

Commit 76bed07

Browse files
committed
Fix for helpers
Updated the code so that all the helper files will be included Added a default value for the delay argument for the $location function to prevent errors
1 parent 827ef76 commit 76bed07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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);

0 commit comments

Comments
 (0)