protected function getDefaultPageInfo() { // Check if config file exists to avoid error when installing forum if (!Container::get('cache')->isCached('quickjump') && is_file(ForumEnv::get('FORUM_CONFIG_FILE'))) { Container::get('cache')->store('quickjump', \FeatherBB\Model\Cache::get_quickjump()); } $title = Container::get('forum_settings') ? ForumSettings::get('o_board_title') : 'FeatherBB'; $data = array('title' => Utils::escape($title), 'page_number' => null, 'active_page' => 'index', 'focus_element' => null, 'is_indexed' => true, 'admin_console' => false, 'page_head' => null, 'paging_links' => null, 'required_fields' => null, 'footer_style' => null, 'quickjump' => Container::get('cache')->retrieve('quickjump'), 'fid' => null, 'pid' => null, 'tid' => null); if (is_object(User::get()) && User::get()->is_admmod) { $data['has_reports'] = \FeatherBB\Model\Admin\Reports::has_reports(); } if (ForumEnv::get('FEATHER_SHOW_INFO')) { $data['exec_info'] = \FeatherBB\Model\Debug::get_info(); if (ForumEnv::get('FEATHER_SHOW_QUERIES')) { $data['queries_info'] = \FeatherBB\Model\Debug::get_queries(); } } return $data; }
protected function getDefaultPageInfo() { // Check if config file exists to avoid error when installing forum if (!$this->app->cache->isCached('quickjump') && is_file($this->app->forum_env['FORUM_CONFIG_FILE'])) { $this->app->cache->store('quickjump', \FeatherBB\Model\Cache::get_quickjump()); } $data = array('title' => Utils::escape($this->app->forum_settings['o_board_title']), 'page_number' => null, 'active_page' => 'index', 'focus_element' => null, 'is_indexed' => true, 'admin_console' => false, 'page_head' => null, 'paging_links' => null, 'required_fields' => null, 'footer_style' => null, 'quickjump' => $this->app->cache->retrieve('quickjump'), 'fid' => null, 'pid' => null, 'tid' => null); if (is_object($this->app->user) && $this->app->user->is_admmod) { $data['has_reports'] = \FeatherBB\Model\Header::get_reports(); } if ($this->app->forum_env['FEATHER_SHOW_INFO']) { $data['exec_info'] = \FeatherBB\Model\Debug::get_info(); if ($this->app->forum_env['FEATHER_SHOW_QUERIES']) { $data['queries_info'] = \FeatherBB\Model\Debug::get_queries(); } } return $data; }