Merge pull request #148 from gelysis/1.6

SilverStripe 3.7 tweaks
This commit is contained in:
Will Rossiter 2018-07-16 16:59:21 +12:00 committed by GitHub
commit 446140cfbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
{
/**