Browse files

MDL-31528 category: Fixed use of lang_string class

  • Loading branch information...
1 parent a7dedc5 commit 2eaa6c2667ee99710f649e66f0811fb39239cd03 Sam Hemelryk committed Mar 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/category.php
View
2 course/category.php
@@ -262,7 +262,7 @@
// Prepare a table to display the sub categories.
$table = new html_table;
$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();
$baseurl = new moodle_url('/course/category.php');
foreach ($subcategories as $subcategory) {

0 comments on commit 2eaa6c2

Please sign in to comment.