Merge 1.10.x

pull/2487/head
jmontoyaa 9 years ago
commit 1b50981243
  1. 8
      main/inc/lib/api.lib.php
  2. 3
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php

@ -1824,7 +1824,7 @@ function api_format_course_array($course_data)
if (file_exists(api_get_path(SYS_COURSE_PATH).$course_data['directory'].'/course-pic.png')) {
$url_image = api_get_path(WEB_COURSE_PATH).$course_data['directory'].'/course-pic.png';
} else {
$url_image = Display::return_icon('session_default.png', null, null, null, null, true);
$url_image = Display::returnIconPath('session_default.png');
}
$_course['course_image_large'] = $url_image;
@ -3197,7 +3197,6 @@ function api_not_allowed($print_headers = false, $message = null)
);
$form->addElement('text', 'login', null, array('placeholder' => get_lang('UserName'), 'class' => 'autocapitalize_off'));
$form->addElement('password', 'password', null, array('placeholder' => get_lang('Password')));
$form->addButton('submitAuth', get_lang('LoginEnter'), '', 'primary');
// see same text in auth/gotocourse.php and main_api.lib.php function api_not_allowed (above)
@ -5889,7 +5888,6 @@ function api_get_tools_lists($my_tool = null) {
TOOL_GROUP,
TOOL_BLOGS,
TOOL_CHAT,
TOOL_CONFERENCE,
TOOL_STUDENTPUBLICATION,
TOOL_TRACKING,
TOOL_HOMEPAGE_LINK,
@ -6517,8 +6515,8 @@ function api_get_home_path()
return "{$home}{$clean_url}";
}
}
return $home;
// /FIX
}
/**
@ -7757,7 +7755,7 @@ function api_mail_html(
$mail->WordWrap = 200;
if ($platform_email['SMTP_AUTH']) {
$mail->SMTPAuth = true;
$mail->SMTPAuth = 1;
$mail->Username = $platform_email['SMTP_USER'];
$mail->Password = $platform_email['SMTP_PASS'];
if (isset($platform_email['SMTP_SECURE'])) {

@ -140,13 +140,14 @@ class Basic extends Toolbar
public function getConfig()
{
$config = array();
if (api_get_setting('more_buttons_maximized_mode') == 'true') {
if (api_get_setting('more_buttons_maximized_mode') === 'true') {
$config['toolbar_minToolbar'] = $this->getMinimizedToolbar();
$config['toolbar_maxToolbar'] = $this->getMaximizedToolbar();
}
$config['customConfig'] = api_get_path(WEB_LIBRARY_PATH).'javascript/ckeditor/config_js.php';
$config['flash_flvPlayer'] = api_get_path(REL_PATH).'web/assets/ckeditor/plugins/flash/swf/player.swf';
/*filebrowserFlashBrowseUrl
filebrowserFlashUploadUrl

Loading…
Cancel
Save