mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
commit
446140cfbc
@ -1,4 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
// Ensure compatibility with PHP 7.2 ("object" is a reserved word),
|
||||||
|
// with SilverStripe 3.6 (using Object) and SilverStripe 3.7 (using SS_Object)
|
||||||
|
if (!class_exists('SS_Object')) {
|
||||||
|
class_alias('Object', 'SS_Object');
|
||||||
|
}
|
||||||
|
|
||||||
// add the extension to pages
|
// add the extension to pages
|
||||||
if (class_exists('SiteTree')) {
|
if (class_exists('SiteTree')) {
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
*
|
*
|
||||||
* @package googlesitemaps
|
* @package googlesitemaps
|
||||||
*/
|
*/
|
||||||
class GoogleSitemap extends Object
|
class GoogleSitemap extends SS_Object
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user