Commit 5571db39 authored by Julian Seidenberg's avatar Julian Seidenberg

Merge pull request #48 from ARNHOE/patch-3

Fixed deprecated extraStatics
parents f9b69b57 9e585d8e
......@@ -4,13 +4,10 @@
*/
class NewsletterSiteConfig extends DataExtension{
function extraStatics($class = null, $extension = null) {
return array(
'db' => array(
"GlobalUnsubscribe" => "Boolean",
)
);
}
private static $db = array(
"GlobalUnsubscribe" => "Boolean"
);
public function updateCMSFields(FieldList $fields) {
$fields->addFieldToTab("Root",
......@@ -27,4 +24,4 @@ class NewsletterSiteConfig extends DataExtension{
$globalUnsubscribe->setDescription($globalUnsubscribeDescription);
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment