Skip to content

Commit

Permalink
fix removed i18n::get_common_locales()
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerkrauss committed May 24, 2017
1 parent a7ef647 commit a49189e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/model/Subsite.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace SilverStripe\Subsites\Model;


use SilverStripe\i18n\Data\Intl\IntlLocales;
use SilverStripe\ORM\DataObject;
use SilverStripe\Control\Session;
use SilverStripe\i18n\i18n;
Expand Down Expand Up @@ -582,7 +583,7 @@ public function getCMSFields() {
$languageSelector = new DropdownField(
'Language',
$this->fieldLabel('Language'),
i18n::get_common_locales()
(new IntlLocales)->getLocales()
);

$pageTypeMap = array();
Expand Down

0 comments on commit a49189e

Please sign in to comment.