Use URL redirects instead of accessing the index directly.
This commit is contained in:
parent
f9ed58e7c4
commit
f67cb4dfa8
@ -161,10 +161,10 @@ class tag_albums_Controller extends Controller {
|
|||||||
if ((module::get_var("tag_albums", "tag_index_scope", "false")) || ($id == "")) {
|
if ((module::get_var("tag_albums", "tag_index_scope", "false")) || ($id == "")) {
|
||||||
$tag_album_index_type = module::get_var("tag_albums", "tag_index", "default");
|
$tag_album_index_type = module::get_var("tag_albums", "tag_index", "default");
|
||||||
if (($tag_album_index_type == "tagcloudpage") && (module::is_active("tag_cloud_page"))) {
|
if (($tag_album_index_type == "tagcloudpage") && (module::is_active("tag_cloud_page"))) {
|
||||||
Tag_Cloud_Page_Controller::index();
|
url::redirect("tag_cloud_page/");
|
||||||
return;
|
return;
|
||||||
} elseif (($tag_album_index_type == "alltags") && (module::is_active("all_tags"))) {
|
} elseif (($tag_album_index_type == "alltags") && (module::is_active("all_tags"))) {
|
||||||
All_Tags_Controller::index();
|
url::redirect("all_tags/");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -161,10 +161,10 @@ class tag_albums_Controller extends Controller {
|
|||||||
if ((module::get_var("tag_albums", "tag_index_scope", "false")) || ($id == "")) {
|
if ((module::get_var("tag_albums", "tag_index_scope", "false")) || ($id == "")) {
|
||||||
$tag_album_index_type = module::get_var("tag_albums", "tag_index", "default");
|
$tag_album_index_type = module::get_var("tag_albums", "tag_index", "default");
|
||||||
if (($tag_album_index_type == "tagcloudpage") && (module::is_active("tag_cloud_page"))) {
|
if (($tag_album_index_type == "tagcloudpage") && (module::is_active("tag_cloud_page"))) {
|
||||||
Tag_Cloud_Page_Controller::index();
|
url::redirect("tag_cloud_page/");
|
||||||
return;
|
return;
|
||||||
} elseif (($tag_album_index_type == "alltags") && (module::is_active("all_tags"))) {
|
} elseif (($tag_album_index_type == "alltags") && (module::is_active("all_tags"))) {
|
||||||
All_Tags_Controller::index();
|
url::redirect("all_tags/");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user