From dbc0ff4c9db4d2ebf0e4a2e1cda2fc79c17831d8 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Fri, 8 Jun 2018 10:49:20 -0500 Subject: [PATCH] Fix exercise title when save_titles_as_html is enabled - refs BT#14409 --- main/exercise/exercise.class.php | 2 +- main/exercise/exercise.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/exercise/exercise.class.php b/main/exercise/exercise.class.php index 864fb4bb67..c1267c25b8 100755 --- a/main/exercise/exercise.class.php +++ b/main/exercise/exercise.class.php @@ -8229,7 +8229,7 @@ class Exercise * * @return string */ - private function getUnformattedTitle() + public function getUnformattedTitle() { return strip_tags(api_html_entity_decode($this->title)); } diff --git a/main/exercise/exercise.php b/main/exercise/exercise.php index c7be05b2ed..1e3c86301b 100644 --- a/main/exercise/exercise.php +++ b/main/exercise/exercise.php @@ -672,7 +672,7 @@ if (!empty($exerciseList)) { $cut_title = $exercise->getCutTitle(); $alt_title = ''; if ($cut_title != $row['title']) { - $alt_title = ' title = "'.$row['title'].'" '; + $alt_title = ' title = "'.$exercise->getUnformattedTitle().'" '; } // Teacher only