/** * Overloaded function to display a toolbar with page actions. */ public function output($bEmergencyError = false) { if (!$bEmergencyError) { if ($this->pageExists()) { //action links $aoAllowedActions = self::getPageNavEntriesAllowed($this->getoPage()); $nCountAllowedActions = count($aoAllowedActions); if ($nCountAllowedActions > 1 || $nCountAllowedActions == 1 && $aoAllowedActions[0]->getActionName() != 'view') { $this->out = $this->tpl()->pageNav($aoAllowedActions) . $this->out; } } $this->headJs('var g_pagename="' . str_replace('&', '&', AnwUtils::escapeQuote($this->getoPage()->getName())) . '";'); $this->headJs('var g_actionpageurl="' . str_replace('&', '&', AnwUtils::escapeQuote(AnwUtils::link($this->getoPage(), $this->getName()))) . '";'); } parent::output($bEmergencyError); }