Skip to content

Commit

Permalink
Revise Controller_G2::action_map() to no longer use deprecated "tag_n…
Browse files Browse the repository at this point in the history
…ame" route.
  • Loading branch information
shadlaws committed Jun 14, 2013
1 parent 971e0f5 commit 6b40799
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/g2_import/classes/G2Import/Controller/G2.php
Expand Up @@ -44,12 +44,12 @@ public function action_map() {
$tag_name = $this->request->query("g2_tagName");
}

if (!$id) {
$this->redirect("tag_name/$tag_name", 301);
}

$tag = ORM::factory("Tag")->where("name", "=", $tag_name)->find();
if ($tag->loaded()) {
if (!$id) {
$this->redirect($tag->abs_url(), 301);
}

Item::set_display_context_callback("Controller_Tags::get_display_context", $tag->id);
// We want to show the item as part of the tag virtual album. Most of this code is below; we'll
// change $path and $view to let it fall through
Expand Down

0 comments on commit 6b40799

Please sign in to comment.