Minor - format code, remove logs

pull/3215/head
Julio Montoya 5 years ago
parent ccee207a22
commit 8dcd58126d
  1. 3
      public/main/inc/global.inc.php
  2. 4
      public/main/inc/lib/plugin.class.php
  3. 2
      public/main/inc/lib/plugin.lib.php
  4. 1
      src/CoreBundle/Controller/ResourceController.php
  5. 1
      src/CoreBundle/Repository/IllustrationRepository.php
  6. 3
      src/SettingsBundle/Manager/SettingsManager.php

@ -96,9 +96,6 @@ try {
}
define('DEFAULT_DOCUMENT_QUOTA', $default_quota);*/
} catch (Exception $e) {
var_dump($e->getMessage());
var_dump($e->getCode());
var_dump($e->getLine());
/*echo $e->getMessage(); exit;
var_dump($e->getMessage());
var_dump($e->getCode());

@ -571,11 +571,11 @@ class Plugin
$pluginName = Database::escape_string($pluginName);
$sql = "DELETE FROM $t_tool
WHERE c_id = $courseId AND
WHERE c_id = $courseId AND
(
name = '$pluginName' OR
name = '$pluginName:student' OR
name = '$pluginName:teacher'
name = '$pluginName:teacher'
)";
Database::query($sql);
}

@ -147,7 +147,7 @@ class AppPlugin
return $installedPlugins;
}
}
if ($fromDatabase || null === $installedPlugins) {
$installedPlugins = [];
$plugins = api_get_settings_params(

@ -662,6 +662,7 @@ class ResourceController extends AbstractResourceController implements CourseCon
'type' => $type,
'comment_form' => $form->createView(),
];
return $this->render(
$repository->getTemplates()->getFromAction(__FUNCTION__, $request->isXmlHttpRequest()),
$params

@ -15,7 +15,6 @@ use Chamilo\CoreBundle\Entity\Session;
use Chamilo\CoreBundle\Form\Resource\IllustrationType;
use Chamilo\CourseBundle\Entity\CGroupInfo;
use Chamilo\UserBundle\Entity\User;
use Doctrine\ORM\Query\Expr\Join;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpFoundation\File\UploadedFile;

@ -17,10 +17,7 @@ use Sylius\Bundle\SettingsBundle\Schema\SchemaInterface;
use Sylius\Bundle\SettingsBundle\Schema\SettingsBuilder;
use Sylius\Component\Registry\ServiceRegistryInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestMatcherInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\Validator\ConstraintViolationListInterface;
use Symfony\Component\Validator\Exception\ValidatorException;

Loading…
Cancel
Save