Internal: Fix lang translation, use namespace

pull/3464/head
Julio Montoya 4 years ago
parent 2560a75c40
commit 6aadfb87c0
  1. 3
      public/main/inc/global.inc.php
  2. 2
      tests/datafiller/fill_users.php
  3. 2
      tests/travis/setup-apache.sh

@ -6,6 +6,7 @@ use Chamilo\CoreBundle\Framework\Container;
use Patchwork\Utf8\Bootup;
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Session\Flash\FlashBag;
/**
* All legacy Chamilo scripts should include this important file.
@ -41,7 +42,7 @@ try {
$kernel->boot();
$container = $kernel->getContainer();
$router = $container->get('router');
/** @var \Symfony\Component\HttpFoundation\Session\Flash\FlashBag $flashBag */
/** @var FlashBag $flashBag */
$flashBag = $container->get('session')->getFlashBag();
$saveFlashBag = null;
if (!empty($flashBag->keys())) {

@ -35,7 +35,7 @@ function fill_users()
null,
$user['active']
);
$output[$i]['line-info'] = $res ? get_lang('Inserted') : get_lang('NotInserted');
$output[$i]['line-info'] = $res ? get_lang('Inserted') : get_lang('Not Inserted');
}
return $output;

@ -2,7 +2,7 @@
echo "* Start setup-apache.sh ...";
sudo a2enmod rewrite actions fastcgi alias
sudo a2enmod rewrite actions alias
# Use default config
sudo cp -f tests/travis/travis-apache /etc/apache2/sites-available/000-default.conf

Loading…
Cancel
Save