Module: nagvis Branch: master Commit: 19b711eb122247d3c4c0f835f1ae0776e8b4164b URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=19b711eb122247d3c4c0f835f1ae0776e8b4164b
Author: LaMi <[email protected]> Date: Tue Nov 10 16:46:05 2009 +0100 Fixed wrong file checking --- .../nagvis-js/classes/GlobalHeaderMenu.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/frontend/nagvis-js/classes/GlobalHeaderMenu.php b/share/frontend/nagvis-js/classes/GlobalHeaderMenu.php index f05a183..fad920f 100644 --- a/share/frontend/nagvis-js/classes/GlobalHeaderMenu.php +++ b/share/frontend/nagvis-js/classes/GlobalHeaderMenu.php @@ -52,7 +52,7 @@ class GlobalHeaderMenu { $this->templateName = $templateName; $this->pathHtmlBase = $this->CORE->getMainCfg()->getValue('paths','htmlbase'); - $this->pathTemplateFile = $this->CORE->getMainCfg()->getValue('paths','headertemplate').'tmpl.'.$this->templateName.'.html'; + $this->pathTemplateFile = $this->CORE->getMainCfg()->getValue('paths','pagetemplate').$this->templateName.'.header.html'; // Initialize template system $this->TMPL = New FrontendTemplateSystem($this->CORE); @@ -288,7 +288,7 @@ class GlobalHeaderMenu { return TRUE; } else { if($printErr == 1) { - new GlobalMessage('WARNING', $this->CORE->getLang()->getText('headerTemplateNotExists','FILE~'.$this->pathTemplateFile)); + new GlobalMessage('WARNING', $this->CORE->getLang()->getText('headerTemplateNotExists', Array('PATH' => $this->pathTemplateFile))); } return FALSE; } @@ -306,7 +306,7 @@ class GlobalHeaderMenu { return TRUE; } else { if($printErr == 1) { - new GlobalMessage('WARNING', $this->CORE->getLang()->getText('headerTemplateNotReadable','FILE~'.$this->pathTemplateFile)); + new GlobalMessage('WARNING', $this->CORE->getLang()->getText('headerTemplateNotReadable', Array('FILE' => $this->pathTemplateFile))); } return FALSE; } ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
