Permalink
Browse files

Move lang test to framework section

  • Loading branch information...
flack committed Aug 25, 2018
1 parent 2a6219f commit b31eac8935ac47b2310f27e1b2e24d6a51af5243
Showing with 8 additions and 8 deletions.
  1. +8 −8 lib/midcom/config/test.php
View
@@ -62,6 +62,14 @@ private function check_midcom()
$this->add('MidCOM cache base directory', self::OK, $cachedir);
}
$lang = midcom::get()->i18n->get_current_language();
$locale = Locale::getDefault();
if ($lang != substr($locale, 0, 2)) {
$this->add('MidCOM language', self::WARNING, 'Language is set to "' . $lang . '", but the locale "' . $locale . '" is used. This might lead to problems in datamanager number inputs if decimal separators diverge');
} else {
$this->add('MidCOM language', self::OK, $locale);
}
$this->check_rcs();
}
@@ -113,14 +121,6 @@ private function check_php()
$this->add("OPCache", self::WARNING, "OPCache is recommended for efficient MidCOM operation");
}
$lang = midcom::get()->i18n->get_current_language();
$locale = Locale::getDefault();
if ($lang != substr($locale, 0, 2)) {
$this->add('Locale', self::WARNING, 'MidCOM language is set to "' . $lang . '", but the locale "' . $locale . '" is used. This might lead to problems in datamanager number inputs if decimal separators diverge');
} else {
$this->add('Locale', self::OK, $locale);
}
if (!class_exists('Memcached')) {
$this->add('Memcache', self::WARNING, 'The PHP memcached module is recommended for efficient MidCOM operation.');
} elseif (!midcom::get()->config->get('cache_module_memcache_backend')) {

0 comments on commit b31eac8

Please sign in to comment.