2008-11-19 03:31:31 +00:00
|
|
|
<?php
|
2018-07-16 16:51:00 +12:00
|
|
|
// 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');
|
|
|
|
}
|
2009-08-12 03:51:43 +00:00
|
|
|
|
2011-06-07 11:37:38 -07:00
|
|
|
// add the extension to pages
|
2012-06-30 21:39:35 +12:00
|
|
|
if (class_exists('SiteTree')) {
|
2013-03-26 22:30:38 +13:00
|
|
|
SiteTree::add_extension('GoogleSitemapSiteTreeExtension');
|
2012-06-30 21:39:35 +12:00
|
|
|
}
|
2011-06-07 11:37:38 -07:00
|
|
|
|
|
|
|
// if you need to add this to DataObjects include the following in
|
|
|
|
// your own _config:
|
|
|
|
|
|
|
|
// GoogleSiteMap::register_dataobject('MyDataObject');
|