소스 검색

Move constant see: cbca6874407130615849ac3b70f6b19e9ada7cc8

jmontoyaa 8 년 전
부모
커밋
58d4fb46df
3개의 변경된 파일4개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 2
      index.php
  2. 1 8
      main/inc/global.inc.php
  3. 3 0
      main/inc/lib/api.lib.php

+ 0 - 2
index.php

@@ -7,8 +7,6 @@
 
 use \ChamiloSession as Session;
 define('CHAMILO_HOMEPAGE', true);
-// Avoid loading CKeditor lib on homepage (very heavy lib)
-define('CHAMILO_LOAD_WYSIWYG', false);
 
 /* Flag forcing the 'current course' reset, as we're not inside a course anymore. */
 // Maybe we should change this into an api function? an example: CourseManager::unset();

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

@@ -24,13 +24,6 @@
 // Showing/hiding error codes in global error messages.
 define('SHOW_ERROR_CODES', false);
 
-// Make sure the CHAMILO_LOAD_WYSIWYG constant is defined
-// To remove CKeditor libs from HTML, set this constant to true before loading
-// global.inc.php
-if (!defined('CHAMILO_LOAD_WYSIWYG')) {
-    define('CHAMILO_LOAD_WYSIWYG', true);
-}
-
 // Include the libraries that are necessary everywhere
 require_once __DIR__.'/../../vendor/autoload.php';
 require_once __DIR__.'/../../app/AppKernel.php';
@@ -442,7 +435,7 @@ if (!empty($valid_languages)) {
         $language_interface = api_get_language_from_type($language_priority4);
     } else {
         $language_interface = api_get_setting('platformLanguage');
-    }    
+    }
 
     if (!empty($language_priority3) && api_get_language_from_type($language_priority3) !== false) {
         $language_interface = api_get_language_from_type($language_priority3);

+ 3 - 0
main/inc/lib/api.lib.php

@@ -571,6 +571,9 @@ define('SHORTCUTS_VERTICAL', 1);
 // Image class
 define('IMAGE_PROCESSOR', 'gd'); // 'imagick' or 'gd' strings
 
+// Avoid loading CKeditor lib on homepage (very heavy lib)
+define('CHAMILO_LOAD_WYSIWYG', false);
+
 /**
  * Inclusion of internationalization libraries
  */