Rename save_titles_as_html to save_titles_as_html - refs BT#1244

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent 6079828762
commit 547bdb5d83
  1. 2
      main/admin/course_category.php
  2. 2
      main/course_description/add.php
  3. 2
      main/course_description/edit.php
  4. 2
      main/course_progress/thematic.php
  5. 2
      main/exercise/exercise.class.php
  6. 6
      main/exercise/question.class.php
  7. 2
      main/install/configuration.dist.php

@ -87,7 +87,7 @@ if ($action == 'add' || $action == 'edit') {
$form->addElement('hidden', 'formSent', 1); $form->addElement('hidden', 'formSent', 1);
$form->addElement('text', 'code', get_lang("CategoryCode")); $form->addElement('text', 'code', get_lang("CategoryCode"));
if (api_get_configuration_value('save_titles_like_html')) { if (api_get_configuration_value('save_titles_as_html')) {
$form->addHtmlEditor( $form->addHtmlEditor(
'name', 'name',
get_lang('CategoryName'), get_lang('CategoryName'),

@ -56,7 +56,7 @@ $form = new FormValidator(
); );
$form->addElement('header', $header); $form->addElement('header', $header);
$form->addElement('hidden', 'description_type', $description_type); $form->addElement('hidden', 'description_type', $description_type);
if (api_get_configuration_value('save_titles_like_html')) { if (api_get_configuration_value('save_titles_as_html')) {
$form->addHtmlEditor( $form->addHtmlEditor(
'title', 'title',
get_lang('Title'), get_lang('Title'),

@ -77,7 +77,7 @@ $form->addElement('hidden', 'id', $original_id);
$form->addElement('hidden', 'description_type', $description_type); $form->addElement('hidden', 'description_type', $description_type);
$form->addElement('hidden', 'sec_token', $token); $form->addElement('hidden', 'sec_token', $token);
if (api_get_configuration_value('save_titles_like_html')) { if (api_get_configuration_value('save_titles_as_html')) {
$form->addHtmlEditor( $form->addHtmlEditor(
'title', 'title',
get_lang('Title'), get_lang('Title'),

@ -190,7 +190,7 @@ if ($action == 'thematic_list') {
$form->addElement('hidden', 'thematic_id', $thematic_id); $form->addElement('hidden', 'thematic_id', $thematic_id);
} }
if (api_get_configuration_value('save_titles_like_html')) { if (api_get_configuration_value('save_titles_as_html')) {
$form->addHtmlEditor( $form->addHtmlEditor(
'title', 'title',
get_lang('Title'), get_lang('Title'),

@ -1819,7 +1819,7 @@ class Exercise
$form->addElement('header', $form_title); $form->addElement('header', $form_title);
// Title. // Title.
if (api_get_configuration_value('save_titles_like_html')) { if (api_get_configuration_value('save_titles_as_html')) {
$form->addHtmlEditor( $form->addHtmlEditor(
'exerciseTitle', 'exerciseTitle',
get_lang('ExerciseName'), get_lang('ExerciseName'),

@ -191,7 +191,7 @@ abstract class Question
*/ */
public function selectTitle() public function selectTitle()
{ {
if (!api_get_configuration_value('save_titles_like_html')) { if (!api_get_configuration_value('save_titles_as_html')) {
return $this->question; return $this->question;
} }
@ -204,7 +204,7 @@ abstract class Question
*/ */
public function getTitleToDisplay($itemNumber) public function getTitleToDisplay($itemNumber)
{ {
$showQuestionTitleHtml = api_get_configuration_value('save_titles_like_html'); $showQuestionTitleHtml = api_get_configuration_value('save_titles_as_html');
$title = $showQuestionTitleHtml ? '' : '<strong>'; $title = $showQuestionTitleHtml ? '' : '<strong>';
$title .= $itemNumber.'. '.$this->selectTitle(); $title .= $itemNumber.'. '.$this->selectTitle();
@ -1558,7 +1558,7 @@ abstract class Question
</script>'; </script>';
// question name // question name
if (api_get_configuration_value('save_titles_like_html')) { if (api_get_configuration_value('save_titles_as_html')) {
$editorConfig = ['ToolbarSet' => 'Minimal']; $editorConfig = ['ToolbarSet' => 'Minimal'];
$form->addHtmlEditor('questionName', get_lang('Question'), false, false, $editorConfig, true); $form->addHtmlEditor('questionName', get_lang('Question'), false, false, $editorConfig, true);
} else { } else {

@ -362,7 +362,7 @@ $_configuration['agenda_legend'] = [
'#f0f' => 'another caption' '#f0f' => 'another caption'
];*/ ];*/
// Save some tool titles with HTML editor // Save some tool titles with HTML editor
// $_configuration['save_titles_like_html'] = false; // $_configuration['save_titles_as_html'] = false;
// Show the full toolbar set to all CKEditor // Show the full toolbar set to all CKEditor
//$_configuration['full_ckeditor_toolbar_set'] = false; //$_configuration['full_ckeditor_toolbar_set'] = false;
// Allow change the orientation when export a single (course progress) thematic to pdf. Portrait or landscape // Allow change the orientation when export a single (course progress) thematic to pdf. Portrait or landscape

Loading…
Cancel
Save