Browse Source

Merge branch 'master' of github.com:chamilo/chamilo-lms

Yannick Warnier 11 years ago
parent
commit
5f714c3d9f

+ 0 - 4
.gitignore

@@ -22,11 +22,7 @@ logs/*
 *.log
 
 # IDE settings
-
 .idea
-.idea/*
-.idea/dictionaries/*
-.idea/cssxfire.xml
 
 *.orig
 nbproject/*

+ 0 - 46
config/configuration.dist.yml.php

@@ -1,46 +0,0 @@
-<?php
-/** This script is only use when using the console.php chamilo:install command */
-/**
- * Database settings
- */
-// Your MySQL server
-$_configuration['db_host']     = 'localhost';
-// Your MySQL username
-$_configuration['db_user']     = 'root';
-// Your MySQL password
-$_configuration['db_password'] = 'root';
-
-// Prefix for course tables (IF NOT EMPTY, can be replaced by another prefix, else leave empty)
-/*$_configuration['table_prefix']          = '';
-// prefix all created bases (for courses) with this string
-$_configuration['db_prefix']             = '';*/
-// main Chamilo database
-$_configuration['main_database']         = 'chamilo';
-
-/**
- * Directory settings
- */
-// URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/
-// Comment this line if you want to enable multiple URLs
-$_configuration['root_web']       = 'http://localhost/chamilo';
-$_configuration['root_sys']       = '/var/www/chamilo';
-
-/**
- * Misc. settings
- */
-// Security word for password recovery
-$_configuration['security_key']      = md5(uniqid(rand().time()));
-// Hash function method
-$_configuration['password_encryption']      = 'sha1';
-// You may have to restart your web server if you change this
-$_configuration['session_stored_in_db']     = false;
-// Session lifetime
-$_configuration['session_lifetime']         = 3600;
-// Activation for multi-url access
-//$_configuration['multiple_access_urls']   = true;
-//Deny the elimination of users
-$_configuration['deny_delete_users']        = false;
-//Prevent all admins from using the "login_as" feature
-$_configuration['login_as_forbidden_globally'] = false;
-// Version settings
-$_configuration['system_version']           = '1.10.0';

+ 1 - 1
main/inc/global.inc.php

@@ -176,7 +176,7 @@ $app['debug'] = isset($_configuration['debug']) ? $_configuration['debug'] : fal
 $app['show_profiler'] = isset($_configuration['show_profiler']) ? $_configuration['show_profiler'] : false;
 
 // Enables assetic in order to load 1 compressed stylesheet or split files
-$app['assetic.enabled'] = false;
+$app['assetic.enabled'] = $app['debug'];
 // Dumps assets
 $app['assetic.auto_dump_assets'] = false;
 

+ 7 - 5
src/ChamiloLMS/Command/Template/AsseticDumpCommand.php

@@ -28,7 +28,7 @@ class AsseticDumpCommand extends Command
     /**
      * @param Console\Input\InputInterface $input
      * @param Console\Output\OutputInterface $output
-     * @return int|null|void
+     * @return integer|null|boolean|void
      */
     protected function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
     {
@@ -49,10 +49,10 @@ class AsseticDumpCommand extends Command
         if (empty($theme)) {
             $dialog = $this->getHelperSet()->get('dialog');
             if (!$dialog->askConfirmation(
-                $output,
-                '<question>Are you sure you want to dump css/js of all themes?</question>(y/N)',
-                false
-            )
+                    $output,
+                    '<question>Are you sure you want to dump css/js of all themes?</question>(y/N)',
+                    false
+                )
             ) {
                 return;
             }
@@ -89,5 +89,7 @@ class AsseticDumpCommand extends Command
             }
         }
         $output->writeln('<info>Dump finished</info>');
+
+        return true;
     }
 }