Skip to content

Commit

Permalink
Fix namespace issues in Campus core_renderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jul 29, 2017
1 parent 508be47 commit a9d7260
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Version Information
===================
29th July 2017 - Version 3.3.0.3
1. Fix namespace issues in Campus core_renderer.

26th July 2017 - Version 3.3.0.2
1. Add custom header and footer settings for HTML forum eMails.
Expand Down
4 changes: 2 additions & 2 deletions classes/output/core_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function edit_button(moodle_url $url) {
* @param tabtree $tabtree
* @return string
*/
protected function render_tabtree(tabtree $tabtree) {
protected function render_tabtree(\tabtree $tabtree) {
if (empty($tabtree->subtree)) {
return '';
}
Expand Down Expand Up @@ -1088,7 +1088,7 @@ public function get_page_heading($heading = null) {
global $CFG;
include_once($CFG->libdir . '/coursecatlib.php');
$currentcategory = $this->get_current_category();
$category = coursecat::get($currentcategory);
$category = \coursecat::get($currentcategory);
$heading = $category->name;
} else {
$heading = $this->page->heading;
Expand Down

0 comments on commit a9d7260

Please sign in to comment.