2008-11-19 04:31:31 +01:00
|
|
|
<?php
|
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-01-15 10:29:59 +01:00
|
|
|
Object::add_extension('SiteTree', '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');
|