Permalink
Browse files

Merge branch 'MDL-26384-m21' of git://github.com/ankitagarwal/moodle …

…into MOODLE_21_STABLE
  • Loading branch information...
2 parents de655be + f167f79 commit 1fa6e5df98cde961eaf6703ef219366f1c5b445f @stronk7 stronk7 committed Feb 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tag/index.php
View
4 tag/index.php
@@ -48,7 +48,7 @@
} else if ($tagid) {
$tag = tag_get('id', $tagid, '*');
}
-
+unset($tagid);
if (empty($tag)) {
redirect($CFG->wwwroot.'/tag/search.php');
}
@@ -68,7 +68,7 @@
$button = '';
if ($PAGE->user_allowed_editing() ) {
- $button = $OUTPUT->edit_button(new moodle_url("$CFG->wwwroot/tag/index.php", array('id' => $tagid)));
+ $button = $OUTPUT->edit_button(new moodle_url("$CFG->wwwroot/tag/index.php", array('id' => $tag->id)));
}
$PAGE->navbar->add(get_string('tags', 'tag'), new moodle_url('/tag/search.php'));

0 comments on commit 1fa6e5d

Please sign in to comment.