Skip to content

Commit

Permalink
MDL-31528 category: Fixed use of lang_string class
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Mar 21, 2012
1 parent 89399cb commit 11c8623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/category.php
Expand Up @@ -262,7 +262,7 @@
// Prepare a table to display the sub categories. // Prepare a table to display the sub categories.
$table = new html_table; $table = new html_table;
$table->attributes = array('border' => '0', 'cellspacing' => '2', 'cellpadding' => '4', 'class' => 'generalbox boxaligncenter category_subcategories'); $table->attributes = array('border' => '0', 'cellspacing' => '2', 'cellpadding' => '4', 'class' => 'generalbox boxaligncenter category_subcategories');
$table->head = array(new lang_string('subcategories')); $table->head = array(get_string('subcategories'));
$table->data = array(); $table->data = array();
$baseurl = new moodle_url('/course/category.php'); $baseurl = new moodle_url('/course/category.php');
foreach ($subcategories as $subcategory) { foreach ($subcategories as $subcategory) {
Expand Down Expand Up @@ -453,4 +453,4 @@


print_course_search(); print_course_search();


echo $OUTPUT->footer(); echo $OUTPUT->footer();

0 comments on commit 11c8623

Please sign in to comment.