function AdvisingScreen::fix_course_title

7.x AdvisingScreen.php AdvisingScreen::fix_course_title($str)
6.x AdvisingScreen.php AdvisingScreen::fix_course_title($str)

Left in for legacy reasons, this function uses a new Course object's method of $course->fix_title to make a course's title more readable.

Parameters

string $str:

Return value

stromg

3 calls to AdvisingScreen::fix_course_title()
AdvisingScreen::display_toolbox_courses in classes/AdvisingScreen.php
Used in the Toolbox popup, this will display content of the tab which shows a student's courses which they have taken.
AdvisingScreen::display_toolbox_moved in classes/AdvisingScreen.php
Used in the Toolbox popup, this will display content of the tab which shows a student's moved courses. That is, courses which have had their group memberships changed.
AdvisingScreen::display_toolbox_transfers in classes/AdvisingScreen.php
Used in the Toolbox popup, this will display content of the tab which shows a student's transfers

File

classes/AdvisingScreen.php, line 3219

Class

AdvisingScreen

Code

function fix_course_title($str) 
 {

  $new_course = new Course();
  $str = $new_course->fix_title($str);


  return $str;
}