mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merged revisions 46001 via svnmerge from
svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.1 ........ r46001 | sminnee | 2007-11-29 19:56:52 +1300 (Thu, 29 Nov 2007) | 1 line Fixed bug with google sitemap on translated site ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46812 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0aa4a1e71f
commit
dfc48d8421
@ -8,11 +8,9 @@
|
|||||||
class GoogleSitemap extends Controller {
|
class GoogleSitemap extends Controller {
|
||||||
protected $Pages;
|
protected $Pages;
|
||||||
|
|
||||||
function __construct() {
|
|
||||||
$this->Pages = Versioned::get_by_stage('SiteTree', 'Live');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function Items() {
|
public function Items() {
|
||||||
|
$this->Pages = Versioned::get_by_stage('SiteTree', 'Live');
|
||||||
|
|
||||||
$newPages = new DataObjectSet();
|
$newPages = new DataObjectSet();
|
||||||
|
|
||||||
foreach($this->Pages as $page) {
|
foreach($this->Pages as $page) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user