Skip to content

Commit

Permalink
MDL-26384 Tags Fixed redirect issue when editing is toggled
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitagarwal committed Feb 3, 2012
1 parent 4d2f89f commit 6e1cf8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tag/index.php
Expand Up @@ -48,7 +48,7 @@
} else if ($tagid) {
$tag = tag_get('id', $tagid, '*');
}

unset($tagid);
if (empty($tag)) {
redirect($CFG->wwwroot.'/tag/search.php');
}
Expand All @@ -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'));
Expand Down

0 comments on commit 6e1cf8f

Please sign in to comment.