diff --git a/.gitignore b/.gitignore
index 5f51990..a94fad9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@ todo
.sass-cache
.idea
.vscode/settings.json
+.idea/workspace.xml
+.DS_Store
\ No newline at end of file
diff --git a/.idea/Silverstripe-SEO.iml b/.idea/Silverstripe-SEO.iml
deleted file mode 100644
index c9fabd8..0000000
--- a/.idea/Silverstripe-SEO.iml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index 28a804d..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index e1e1c0b..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 94a25f7..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 7fb5018..ee7f144 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,222 +1,31 @@
+
+
+
-
-
-
-
+
+
+
+
+
+
+
-
-
- $PROJECT_DIR$/composer.json
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
- 1585949887526
-
-
- 1585949887526
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/composer.json b/composer.json
index bb8f0d4..1100828 100644
--- a/composer.json
+++ b/composer.json
@@ -26,9 +26,9 @@
"issues": "http://github.com/cyber-duck/silverstripe-seo/issues"
},
"require": {
- "php": ">=5.6",
- "silverstripe/cms": "^4.0",
- "silverstripe/framework": "^4.0"
+ "php": ">=5.6 || 8.1",
+ "silverstripe/cms": ">=4.0",
+ "silverstripe/framework": ">=4.0"
},
"autoload": {
"psr-4": {
diff --git a/src/Model/Extension/SeoPageExtension.php b/src/Model/Extension/SeoPageExtension.php
index cca598d..cddc303 100644
--- a/src/Model/Extension/SeoPageExtension.php
+++ b/src/Model/Extension/SeoPageExtension.php
@@ -267,10 +267,10 @@ public function updateCMSFields(FieldList $fields)
public function updateSummaryFields(&$fields)
{
if(Controller::curr() instanceof SEOAdmin) {
- if($this->owner->class && method_exists($this->owner->class, 'remove')) Config::inst()->remove($this->owner->class, 'summary_fields');
- Config::modify()->set($this->owner->class, 'summary_fields', $this->getSummaryFields());
+ if($this->owner->ClassName && method_exists($this->owner->ClassName, 'remove')) Config::inst()->remove($this->owner->ClassName, 'summary_fields');
+ Config::modify()->set($this->owner->ClassName, 'summary_fields', $this->getSummaryFields());
- $fields = Config::inst()->get($this->owner->class, 'summary_fields');
+ $fields = Config::inst()->get($this->owner->ClassName, 'summary_fields');
}
}