mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
87a4a1fcce
commit
b5098645fc
2
main.php
2
main.php
@ -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(
|
||||||
|
@ -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() {
|
Loading…
Reference in New Issue
Block a user