File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " hexbit/sage-woocommerce" ,
33 "description" : " Woocommerce support for sage 10" ,
4- "version" : " 1.0.2 " ,
4+ "version" : " 1.0.3 " ,
55 "keywords" : [
66 " hexbit" ,
77 " smarteist" ,
Original file line number Diff line number Diff line change @@ -140,14 +140,10 @@ public function templatePart(string $template)
140140 Str::endsWith ($ themeTemplate , '.blade.php ' ) &&
141141 realpath ($ themeTemplate )
142142 ) {
143- // Gather data to be passed to view
144- $ data = array_reduce (get_body_class (), function ($ data , $ class ) use ($ themeTemplate ) {
145- return apply_filters ("sage/template/ {$ class }/data " , $ data , $ themeTemplate );
146- }, []);
147143 // We have a template, create a loader file and return it's path.
148144 return view (
149145 $ this ->fileFinder ->getPossibleViewNameFromPath ($ themeTemplate ),
150- $ data
146+ $ this -> app [ ' sage. data' ]
151147 )->makeLoader ();
152148 }
153149
You can’t perform that action at this time.
0 commit comments