Fuhrmann
Well-known member
XenForo_ControllerPublic_Page::actionIndex()
The $nodeModel in the line 13 is not used in the whole action:
The $nodeModel in the line 13 is not used in the whole action:
PHP:
public function actionIndex()
{
$nodeName = $this->_input->filterSingle('node_name', XenForo_Input::STRING);
$page = $this->_getPageOrError($nodeName);
$this->_canonicalizeRequestUrl($page);
$pageModel = $this->_getPageModel();
$nodeModel = $this->_getNodeModel();
if ($page['log_visits'])
{
$pageModel->logVisit($page, XenForo_Visitor::getInstance()->toArray(), XenForo_Application::$time);
$page['view_count']++;
}
$nodeBreadCrumbs = $this->_getNodeModel()->getNodeBreadCrumbs($page, false);