*/
public function fetchPage()
{
- if (defined('MEMBERS_DB') && MEMBERS_DB) {
- // check to see if this page is a member only page
- $memberOnlyPage = Toolkit_Template_Page::isMemberOnly(
- $this->_pageGateway, $this->_catid
- );
- if ($memberOnlyPage
- && !strpos($_SERVER['REQUEST_URI'], 'members-only-area')
- ) {
- header('Location: ' . $this->getToolboxUrl(MEMBERS_CATEGORY));
- }
- }
$this->pageTitle = $this->_getPageTitle($this->_catid);
$bodyFactory = new Toolkit_Template_Page_BodyFactory(