Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit 53c0fbe

Browse files
committed
Fix reference to $site in hook
1 parent de16227 commit 53c0fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/plugins/shopkit/registry/hooks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
$page->update([
124124
'variants' => yaml::encode($variants),
125125
'tax' => yaml::encode($taxes)
126-
], $site->defaultLanguage()->code());
126+
], site()->defaultLanguage()->code());
127127

128128
} catch(Exception $e) {
129129
return response::error($e->getMessage());

0 commit comments

Comments
 (0)