mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Update namespace paths for versioned split
This commit is contained in:
parent
56b23dbdf8
commit
840f664cd9
@ -7,7 +7,7 @@ use SilverStripe\Core\Config\Config;
|
||||
use SilverStripe\Core\Object;
|
||||
use SilverStripe\ORM\ArrayList;
|
||||
use SilverStripe\ORM\DataList;
|
||||
use SilverStripe\ORM\Versioning\Versioned;
|
||||
use SilverStripe\Versioned\Versioned;
|
||||
use SilverStripe\View\ArrayData;
|
||||
|
||||
/**
|
||||
|
@ -114,7 +114,7 @@ class GoogleSitemapSiteTreeExtension extends GoogleSitemapExtension
|
||||
$priority = $this->owner->getField('Priority');
|
||||
|
||||
if (!$priority) {
|
||||
$parentStack = $this->owner->parentStack();
|
||||
$parentStack = $this->owner->getAncestors();
|
||||
$numParents = is_array($parentStack) ? count($parentStack) - 1 : 0;
|
||||
|
||||
$num = max(0.1, 1.0 - ($numParents / 10));
|
||||
|
@ -10,7 +10,7 @@ use SilverStripe\Forms\LiteralField;
|
||||
use SilverStripe\Forms\Tab;
|
||||
use SilverStripe\ORM\DataObject;
|
||||
use SilverStripe\ORM\DB;
|
||||
use SilverStripe\ORM\Versioning\Versioned;
|
||||
use SilverStripe\Versioned\Versioned;
|
||||
|
||||
/**
|
||||
* TODO: Migrate to new instance level interface instead of using static methods for retrieval of site maps and items (i.e. ->getSitemaps() instead of ::get_sitemaps()).
|
||||
@ -20,7 +20,6 @@ use SilverStripe\ORM\Versioning\Versioned;
|
||||
*/
|
||||
class GoogleSitemapTest extends FunctionalTest
|
||||
{
|
||||
|
||||
public static $fixture_file = 'googlesitemaps/tests/GoogleSitemapTest.yml';
|
||||
|
||||
protected $extraDataObjects = array(
|
||||
|
Loading…
Reference in New Issue
Block a user