/**
  * Enables the tag list page if the the user is on that page and viewing a tag.
  *
  * This is called before the posts are obtained, and checks to see whether
  * the user is on the private page created by this plugin and whether the
  * tag-slug query variable is present.  If this is the case, the tags page
  * is rendered as a tag archive page.
  *
  * @access private
  * @since 0.1
  */
 public function _maybe_enable_tag_list_page()
 {
     //  Only register the filters and tags if we're on the sitewide tags page
     if (ClassBlogs_Utils::is_page($this->get_option('tag_page_id'))) {
         // Get information on the tag being displayed
         global $nxtdb;
         $slug = $_GET[self::_TAG_QUERY_VAR_NAME];
         $this->_current_tag = array('name' => $nxtdb->get_var($nxtdb->prepare("SELECT name FROM {$this->sw_tables->tags} WHERE slug = %s", ClassBlogs_Utils::slugify($slug))), 'slug' => $slug);
         add_action('loop_end', array($this, 'reset_blog_on_loop_end'));
         add_action('loop_start', array($this, 'restore_sitewide_post_ids'));
         add_action('the_post', array($this, 'use_correct_blog_for_sitewide_post'));
         add_filter('the_posts', array($this, '_fake_tag_archive_page'));
         add_filter('single_tag_title', array($this, '_set_tag_title'));
         add_filter('nxt_title', array($this, '_set_page_title'), 10, 2);
     }
 }