]> _ Git - cubist_cms-back.git/commitdiff
#2868
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 8 Jul 2019 10:18:42 +0000 (12:18 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 8 Jul 2019 10:18:42 +0000 (12:18 +0200)
src/app/Magic/Fields/Country.php
src/app/Magic/Models/Locale.php

index 2b3507b7ec3e63965ab5ee928639d7583c19b7cd..1aede72b0b6e14260752554f0429b6e0a96f4bf4 100644 (file)
@@ -13,7 +13,7 @@ class Country extends Locale
      */
     protected function _getLocales()
     {
-        $list = Cubist\Locale\Country::getList(App::getLocale());
+        $list = \Cubist\Locale\Country::getList(App::getLocale());
 
         $res = [];
         foreach ($list as $code => $name) {
index ff0f2b23778be9db5b0cf3e3a99c1dec140f5872..26ecb328b67b77fb7d3fea8686dc68a20259b31b 100644 (file)
@@ -22,7 +22,7 @@ class Locale extends CubistMagicModel
             'column' => true]);
 
         $this->addField(['name' => 'flag',
-            'type' => 'Locale',
+            'type' => 'Country',
             'label' => 'Drapeau']);
 
         $this->addField(['name' => 'inherit',