Renamed Sitemap controller to GoogleSitemap, to prevent it from clobbering developers' own classes called Sitemap (merged from branches/2.2.0, r44870)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44913 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-11-15 22:40:20 +00:00
parent 87a4a1fcce
commit b5098645fc
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ Director::addRules(10, array(
'$Controller/$Action/$ID/$OtherID' => '*', '$Controller/$Action/$ID/$OtherID' => '*',
'images/$Action/$Class/$ID/$Field' => 'Image_Uploader', 'images/$Action/$Class/$ID/$Field' => 'Image_Uploader',
'' => 'RootURLController', '' => 'RootURLController',
'sitemap.xml' => 'Sitemap', 'sitemap.xml' => 'GoogleSitemap',
)); ));
Director::addRules(1, array( Director::addRules(1, array(

View File

@ -1,11 +1,11 @@
<?php <?php
/** /**
* Initial implementation of Sitemap support. * Initial implementation of Sitemap support.
* SitemapController should handle requests to 'sitemap.xml' * GoogleSitemap should handle requests to 'sitemap.xml'
* the other two classes are used to render the sitemap * the other two classes are used to render the sitemap
*/ */
class Sitemap extends Controller { class GoogleSitemap extends Controller {
protected $Pages; protected $Pages;
function __construct() { function __construct() {