1
0

Use URL redirects instead of accessing the index directly.

This commit is contained in:
rWatcher 2011-05-16 13:45:11 -04:00
parent f9ed58e7c4
commit f67cb4dfa8
2 changed files with 4 additions and 4 deletions

View File

@ -161,10 +161,10 @@ class tag_albums_Controller extends Controller {
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;
}
}

View File

@ -161,10 +161,10 @@ class tag_albums_Controller extends Controller {
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;
}
}