Implemented official SilverStripe recommendation for version 3.7 regarding the Object/SS_Object

This commit is contained in:
Andreas Gerhards 2018-07-16 16:51:00 +12:00
parent 36091bc840
commit 58c96c7d93
2 changed files with 6 additions and 1 deletions

View File

@ -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')) {

View File

@ -37,7 +37,7 @@
*
* @package googlesitemaps
*/
class GoogleSitemap extends Object
class GoogleSitemap extends SS_Object
{
/**