Permalink
Browse files

Use URL redirects instead of accessing the index directly.

  • Loading branch information...
1 parent f9ed58e commit f67cb4dfa811ebe277ff794b0b6c4d0663ffe21e @rWatcher rWatcher committed May 16, 2011
@@ -161,10 +161,10 @@ public function index($id, $filter) {
if ((module::get_var("tag_albums", "tag_index_scope", "false")) || ($id == "")) {
$tag_album_index_type = module::get_var("tag_albums", "tag_index", "default");
if (($tag_album_index_type == "tagcloudpage") && (module::is_active("tag_cloud_page"))) {
- Tag_Cloud_Page_Controller::index();
+ url::redirect("tag_cloud_page/");
return;
} elseif (($tag_album_index_type == "alltags") && (module::is_active("all_tags"))) {
- All_Tags_Controller::index();
+ url::redirect("all_tags/");
return;
}
}
@@ -161,10 +161,10 @@ public function index($id, $filter) {
if ((module::get_var("tag_albums", "tag_index_scope", "false")) || ($id == "")) {
$tag_album_index_type = module::get_var("tag_albums", "tag_index", "default");
if (($tag_album_index_type == "tagcloudpage") && (module::is_active("tag_cloud_page"))) {
- Tag_Cloud_Page_Controller::index();
+ url::redirect("tag_cloud_page/");
return;
} elseif (($tag_album_index_type == "alltags") && (module::is_active("all_tags"))) {
- All_Tags_Controller::index();
+ url::redirect("all_tags/");
return;
}
}

0 comments on commit f67cb4d

Please sign in to comment.