Removing requires, already added loaded using composer.

1.10.x
Julio Montoya 11 years ago
parent e3075446a7
commit 9ebfc8b29a
  1. 2
      main/admin/calendar.lib.php
  2. 3
      main/admin/calendar_ical_export.php
  3. 2
      main/calendar/agenda.inc.php
  4. 2
      main/calendar/allagendas.php
  5. 26
      main/inc/lib/grade_model.lib.php
  6. 4
      main/inc/lib/groupmanager.lib.php
  7. 11
      main/inc/lib/promotion.lib.php
  8. 1
      main/newscorm/lp_controller.php

@ -2496,7 +2496,7 @@ function agenda_import_ical($course_info,$file) {
error_log('Problem moving uploaded file: '.$file['error'].' in '.__FILE__.' line '.__LINE__);
return false;
}
require_once api_get_path(LIBRARY_PATH).'icalcreator/iCalcreator.class.php';
$ical = new vcalendar();
$ical->setConfig('directory', dirname($filepath) );
$ical->setConfig('filename', basename($filepath) );

@ -16,8 +16,7 @@ $cidReset = true;
require_once '../inc/global.inc.php';
$this_section = SECTION_MYAGENDA;
api_block_anonymous_users();
require_once (api_get_path(LIBRARY_PATH).'groupmanager.lib.php');
require_once (api_get_path(LIBRARY_PATH).'icalcreator/iCalcreator.class.php');
// setting the name of the tool
$nameTools = get_lang('MyAgenda');

@ -3544,8 +3544,6 @@ function show_add_form($id = '', $type = null)
return false;
}
require_once api_get_path(LIBRARY_PATH).'icalcreator/iCalcreator.class.php';
$ical = new vcalendar();
$ical->setConfig('directory', dirname($filepath));
$ical->setConfig('filename', basename($filepath));

@ -18,8 +18,6 @@ $cidReset = true;
require_once '../inc/global.inc.php';
$this_section = SECTION_MYAGENDA;
require_once api_get_path(LIBRARY_PATH).'groupmanager.lib.php';
require_once 'agenda.inc.php';
require_once 'myagenda.inc.php';

@ -1,20 +1,9 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This class provides methods for the notebook management.
* Include/require it in your code to use its features.
* @package chamilo.library
*/
/**
* Code
*/
/**
* @package chamilo.library
*/
require_once 'fckeditor/fckeditor.php';
/**
* Class GradeModel
* @package chamilo.library
*/
class GradeModel extends Model
{
@ -66,13 +55,14 @@ class GradeModel extends Model
*/
public function return_form($url, $action)
{
/*
$oFCKeditor = new FCKeditor('description') ;
$oFCKeditor->ToolbarSet = 'grade_model';
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '200';
$oFCKeditor->Value = '';
$oFCKeditor->CreateHtml();
*/
$form = new FormValidator('grades', 'post', $url);
// Setting the form elements
@ -109,7 +99,6 @@ class GradeModel extends Model
$form->addElement('hidden', 'maxvalue', '100');
$form->addElement('hidden', 'minvalue', '0');
$renderer = & $form->defaultRenderer();
$component_array = array();
@ -166,11 +155,12 @@ class GradeModel extends Model
$form->addElement('advanced_settings', get_lang('AllMustWeight100'));
if ($action == 'edit') {
$form->addElement('style_submit_button', 'submit', get_lang('Modify'), 'class="save"');
//$form->addElement('style_submit_button', 'submit', get_lang('Modify'), 'class="save"');
$form->addElement('style_submit_button', 'submit', get_lang('Modify'), 'class="save"');
} else {
$form->addElement('style_submit_button', 'submit', get_lang('Add'), 'class="save"');
//$form->addElement('style_submit_button', 'submit', get_lang('Add'), 'class="save"');
$form->addElement('style_submit_button', 'submit', get_lang('Add'), 'class="save"');
}
if (!empty($components)) {
$counter = 0;
foreach ($components as $component) {
@ -289,4 +279,4 @@ class GradeModelComponents extends Model
$id = parent::save($params, $show_query);
return $id;
}
}
}

@ -1,10 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
require_once 'fileManage.lib.php';
require_once 'fileUpload.lib.php';
require_once 'document.lib.php';
/**
* This library contains some functions for group-management.
* @author Bart Mollet

@ -1,12 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
require_once 'career.lib.php';
require_once 'fckeditor/fckeditor.php';
define ('PROMOTION_STATUS_ACTIVE', 1);
define ('PROMOTION_STATUS_INACTIVE', 0);
/**
* Class Promotion
* This class provides methods for the promotion management.
@ -159,12 +153,12 @@ class Promotion extends Model
function return_form($url, $action = 'add')
{
$oFCKeditor = new FCKeditor('description') ;
/*$oFCKeditor = new FCKeditor('description') ;
$oFCKeditor->ToolbarSet = 'careers';
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '200';
$oFCKeditor->Value = '';
$oFCKeditor->CreateHtml();
$oFCKeditor->CreateHtml();*/
$form = new FormValidator('promotion', 'post', $url);
// Setting the form elements
@ -185,7 +179,6 @@ class Promotion extends Model
$career_list[$item['id']] = $item['name'];
}
$form->addElement('select', 'career_id', get_lang('Career'), $career_list);
$status_list = $this->get_status_list();
$form->addElement('select', 'status', get_lang('Status'), $status_list);
if ($action == 'edit') {

@ -251,7 +251,6 @@ $session_id = api_get_session_id();
api_protect_course_script(true);
require_once api_get_path(LIBRARY_PATH).'fckeditor/fckeditor.php';
$lpfound = false;
$myrefresh = 0;

Loading…
Cancel
Save