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