Skip to content

Commit e386e03

Browse files
committed
sage.data changed
1 parent 99ec938 commit e386e03

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

src/WooCommerce.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)