Skip to content

Commit 7020567

Browse files
committed
fix(#167): "using $this when not in object context"
1 parent e673eed commit 7020567

File tree

7 files changed

+21
-7438
lines changed

7 files changed

+21
-7438
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
If you're looking to use Kirby SEO with Kirby 5 or newer, please install the Alpha version of the plugin:
3131

32-
```composer require tobimori/kirby-seo:^2.0.0-alpha.7```
32+
```composer require tobimori/kirby-seo:^2.0.0-alpha.8```
3333

3434
## Contributing
3535

classes/IndexNow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static function send(array $urls): bool
9898
$basePath = '';
9999
if ($path && $path !== '/') {
100100
// find the base path by comparing with site url
101-
$siteUrl = $this->page->site()->url();
101+
$siteUrl = App::instance()->site()->url();
102102
$siteParsed = parse_url($siteUrl);
103103
$basePath = $siteParsed['path'] ?? '';
104104
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "tobimori/kirby-seo",
33
"description": "The default choice for SEO on Kirby: Implement technical SEO & Meta best practices with ease and provide an easy-to-use editor experience",
44
"type": "kirby-plugin",
5-
"version": "2.0.0-alpha.7",
5+
"version": "2.0.0-alpha.8",
66
"license": "proprietary",
77
"homepage": "https://github.com/tobimori/kirby-seo#readme",
88
"authors": [

composer.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)