File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,15 @@ component
92
92
variables .viewsHelper = variables .controller .getSetting ( " viewsHelper" );
93
93
variables .viewCaching = variables .controller .getSetting ( " viewCaching" );
94
94
95
- // Verify View Helper Template extension + location
95
+ // Global View Helper
96
96
if ( len ( variables .viewsHelper ) ) {
97
- // extension detection
98
- variables .viewsHelper = (
99
- listLast ( variables .viewsHelper , " ." ) eq " cfm" ? variables .viewsHelper : variables .viewsHelper & " .cfm"
100
- );
101
- // Append mapping to it.
102
- variables .viewsHelper = " /#variables .appMapping #/#variables .viewsHelper #" ;
97
+ var viewHelperPath = " /#variables .appMapping #/#variables .viewsHelper .listFirst ( " ." ) #" ;
98
+ if ( fileExists ( expandPath ( viewHelperPath & " .cfm" ) ) ) {
99
+ variables .viewsHelper = viewHelperPath & " .cfm" ;
100
+ }
101
+ if ( fileExists ( expandPath ( viewHelperPath & " .bxm" ) ) ) {
102
+ variables .viewsHelper = viewHelperPath & " .bxm" ;
103
+ }
103
104
}
104
105
105
106
// Template Cache & Caching Maps
You can’t perform that action at this time.
0 commit comments