diff --git a/fragments/neues/Article.json-ld.php b/fragments/neues/Article.json-ld.php index 0f8762c..edd344b 100644 --- a/fragments/neues/Article.json-ld.php +++ b/fragments/neues/Article.json-ld.php @@ -2,8 +2,6 @@ namespace FriendsOfRedaxo\Neues; -use IntlDateFormatter; - /** @var \rex_fragment $this */ $entry = $this->getVar('entry'); /** @var Entry $entry */ @@ -12,15 +10,15 @@ { "@context": "https://schema.org", "@type": "Article", - "url": "getUrl()); ?>", + "url": "getUrl()) ?>", "publisher":{ "@type":"Organization", - "name":"", + "name":"", }, - "headline": "getName()); ?>", - "mainEntityOfPage": "getUrl()); ?>", - "articleBody": "getDescriptionAsPlaintext()); ?>", - "image": getImages())); ?>, - "datePublished": "getPublishDate()))->format(\DateTime::ATOM)); ?>" + "headline": "getName()) ?>", + "mainEntityOfPage": "getUrl()) ?>", + "articleBody": "getDescriptionAsPlaintext()) ?>", + "image": getImages())) ?>, + "datePublished": "getPublishDate()))->format(\DateTime::ATOM)) ?>" } diff --git a/fragments/neues/NewsArticle.json-ld.php b/fragments/neues/NewsArticle.json-ld.php index d15e58c..80c972e 100644 --- a/fragments/neues/NewsArticle.json-ld.php +++ b/fragments/neues/NewsArticle.json-ld.php @@ -2,8 +2,6 @@ namespace FriendsOfRedaxo\Neues; -use IntlDateFormatter; - /** @var \rex_fragment $this */ $entry = $this->getVar('entry'); /** @var Entry $entry */ @@ -12,15 +10,15 @@ { "@context": "https://schema.org", "@type": "NewsArticle", - "url": "getUrl()); ?>", + "url": "getUrl()) ?>", "publisher":{ "@type":"Organization", - "name":"", + "name":"", }, - "headline": "getName()); ?>", - "mainEntityOfPage": "getUrl()); ?>", - "articleBody": "getDescriptionAsPlaintext()); ?>", - "image": getImages())); ?>, - "datePublished": "getPublishDate()))->format(\DateTime::ATOM)); ?>" + "headline": "getName()) ?>", + "mainEntityOfPage": "getUrl()) ?>", + "articleBody": "getDescriptionAsPlaintext()) ?>", + "image": getImages())) ?>, + "datePublished": "getPublishDate()))->format(\DateTime::ATOM)) ?>" } diff --git a/install.php b/install.php index f284dfa..c814004 100644 --- a/install.php +++ b/install.php @@ -66,7 +66,7 @@ * -> rex_cronjob_neues_publish ändern in FriendsOfRedaxo\Neues\Cronjob\Publish. */ $sql->setTable(rex::getTable('cronjob')); - $sql->setValue('type', Publish::class); + $sql->setValue('type', 'FriendsOfRedaxo\\Neues\\Cronjob\\Publish'); $sql->setWhere('`type` = :class', [':class' => 'rex_cronjob_neues_publish']); $sql->update(); @@ -74,7 +74,7 @@ * Fehlenden CronJob eintragen. */ $sql->setTable(rex::getTable('cronjob')); - $sql->setWhere('`type` = :class', [':class' => Publish::class]); + $sql->setWhere('`type` = :class', [':class' => 'FriendsOfRedaxo\\Neues\\Cronjob\\Publish']); $sql->select(); if (0 === $sql->getRows()) {