mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Implemented official SilverStripe recommendation for version 3.7 regarding the Object/SS_Object
This commit is contained in:
parent
36091bc840
commit
58c96c7d93
@ -1,4 +1,9 @@
|
||||
<?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
|
||||
if (class_exists('SiteTree')) {
|
||||
|
@ -37,7 +37,7 @@
|
||||
*
|
||||
* @package googlesitemaps
|
||||
*/
|
||||
class GoogleSitemap extends Object
|
||||
class GoogleSitemap extends SS_Object
|
||||
{
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user