Update namespace paths for versioned split

This commit is contained in:
Will Rossiter 2017-05-11 06:56:53 +12:00
parent 56b23dbdf8
commit 840f664cd9
3 changed files with 3 additions and 4 deletions

View File

@ -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;
/**

View File

@ -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));

View File

@ -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(