From f67cb4dfa811ebe277ff794b0b6c4d0663ffe21e Mon Sep 17 00:00:00 2001 From: rWatcher Date: Mon, 16 May 2011 13:45:11 -0400 Subject: [PATCH] Use URL redirects instead of accessing the index directly. --- 3.0/modules/tag_albums/controllers/tag_albums.php | 4 ++-- 3.1/modules/tag_albums/controllers/tag_albums.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/3.0/modules/tag_albums/controllers/tag_albums.php b/3.0/modules/tag_albums/controllers/tag_albums.php index 7ff2cbd9..b1293eec 100644 --- a/3.0/modules/tag_albums/controllers/tag_albums.php +++ b/3.0/modules/tag_albums/controllers/tag_albums.php @@ -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; } } diff --git a/3.1/modules/tag_albums/controllers/tag_albums.php b/3.1/modules/tag_albums/controllers/tag_albums.php index 7ff2cbd9..b1293eec 100644 --- a/3.1/modules/tag_albums/controllers/tag_albums.php +++ b/3.1/modules/tag_albums/controllers/tag_albums.php @@ -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; } }