Skip to content
Permalink
Browse files

Fix unknown constant error

Actually just a quick fix to make savign entries work again
  • Loading branch information...
onli committed Feb 15, 2019
1 parent a122784 commit 08200977aad1344d3414158a4c18692f983106b1
Showing with 5 additions and 5 deletions.
  1. +5 −5 serendipity_event_google_sitemap/serendipity_event_google_sitemap.php
@@ -7,7 +7,7 @@
/** This plugin builds a sitemap.xml according to sitemap.org's defintion of the
* "Sitemap XML format" Version 0.9 after every save and publish.
* See https://www.sitemaps.org/protocol.html for details
* See http://www.sitemaps.org/protocol.html for details
*
*/
@@ -30,7 +30,7 @@ function introspect(&$propbag) {
$propbag->add('name', PLUGIN_EVENT_SITEMAP_TITLE);
$propbag->add('description', PLUGIN_EVENT_SITEMAP_DESC);
$propbag->add('author', 'Boris');
$propbag->add('version', '0.58.2');
$propbag->add('version', '0.58.3');
$propbag->add('event_hooks', array(
'backend_publish' => true,
'backend_save' => true,
@@ -56,7 +56,7 @@ function introspect_config_item($name, &$propbag) {
$propbag->add('type', 'string');
$propbag->add('name', PLUGIN_EVENT_SITEMAP_URL);
$propbag->add('description', PLUGIN_EVENT_SITEMAP_URL_DESC);
$propbag->add('default', 'https://www.google.com/webmasters/tools/ping?sitemap=%s');
$propbag->add('default', 'http://www.google.com/webmasters/tools/ping?sitemap=%s;http://submissions.ask.com/ping?sitemap=%s');
break;
case 'gzip_sitemap':
$propbag->add('type', 'boolean');
@@ -316,7 +316,7 @@ function add_permalinks(&$sitemap_xml) {
'.$serendipity['dbPrefix'].'entries AS entries
WHERE entryproperties.property = \'permalink\'
AND timestamp < ' . time() . '
AND value NOT LIKE \'%/' . UNKNOWN . '%\'
AND value NOT LIKE \'%/UNKNOWN%\'
AND entries.id=entryproperties.entryid',
false, 'assoc');
@@ -694,7 +694,7 @@ function write_sitemap($basefilename = 'sitemap.xml', &$eventData, $gnewsmode =
// Walk through the list of pingback-URLs
echo $basefilename . ':<br />';
foreach(explode(';', $pingback_url) as $cur_pingback_url) {
$pingback_name = PLUGIN_EVENT_SITEMAP_UNKNOWN_HOST;
$pingback_name = PLUGIN_EVENT_SITEMAP_UNKNOWN_SERVICE;
$cur_url = sprintf($cur_pingback_url, rawurlencode($serendipity['baseURL'].$filename));
// extract domain-portion from URL

0 comments on commit 0820097

Please sign in to comment.
You can’t perform that action at this time.