Module: nagvis Branch: nagvis-1.4 Commit: faa4969cb7079cb20cdf3cdc85de3872f636e311 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=faa4969cb7079cb20cdf3cdc85de3872f636e311
Author: LaMi <[email protected]> Date: Thu Feb 4 19:05:24 2010 +0100 Maybe this fixes "image not found" problems when displaying error messages --- .../classes/frontend/GlobalFrontendMessageBox.php | 6 +++--- nagvis/nagvis/includes/js/frontendMessage.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nagvis/nagvis/includes/classes/frontend/GlobalFrontendMessageBox.php b/nagvis/nagvis/includes/classes/frontend/GlobalFrontendMessageBox.php index fe00b81..7f38ef1 100644 --- a/nagvis/nagvis/includes/classes/frontend/GlobalFrontendMessageBox.php +++ b/nagvis/nagvis/includes/classes/frontend/GlobalFrontendMessageBox.php @@ -144,11 +144,11 @@ class GlobalFrontendMessageBox { $this->page .= ' </tr>'."\n"; $this->page .= ' <tr height="32">'."\n"; $this->page .= ' <th class="'.$this->type.'" align="center" width="60">'."\n"; - $this->page .= ' <img src="'.$this->pathHtmlBase.'/nagvis/images/internal/msg_'.$this->type.'.png"/>'."\n"; + $this->page .= ' <img src="'.$this->pathHtmlBase.'/nagvis/images/internal/msg_'.strtolower($this->type).'.png"/>'."\n"; $this->page .= ' </th>'."\n"; $this->page .= ' <th class="'.$this->type.'">'.$this->title.'</td>'."\n"; $this->page .= ' <th class="'.$this->type.'" align="center" width="60">'."\n"; - $this->page .= ' <img src="'.$this->pathHtmlBase.'/nagvis/images/internal/msg_'.$this->type.'.png"/>'."\n"; + $this->page .= ' <img src="'.$this->pathHtmlBase.'/nagvis/images/internal/msg_'.strtolower($this->type).'.png"/>'."\n"; $this->page .= ' </th>'."\n"; $this->page .= ' </tr>'."\n"; $this->page .= ' <tr>'."\n"; @@ -169,4 +169,4 @@ class GlobalFrontendMessageBox { return $this->page; } } -?> \ No newline at end of file +?> diff --git a/nagvis/nagvis/includes/js/frontendMessage.js b/nagvis/nagvis/includes/js/frontendMessage.js index 0d08f31..5b36ef9 100644 --- a/nagvis/nagvis/includes/js/frontendMessage.js +++ b/nagvis/nagvis/includes/js/frontendMessage.js @@ -90,7 +90,7 @@ function frontendMessage(oMessage) { oCell.style.width = '60px'; oImg = document.createElement('img'); - oImg.src = oGeneralProperties.path_htmlbase+'/nagvis/images/internal/msg_'+sBoxType+'.png'; + oImg.src = oGeneralProperties.path_htmlbase+'/nagvis/images/internal/msg_'+sBoxType.toLowerCase()+'.png'; oCell.appendChild(oImg); oImg = null; @@ -112,7 +112,7 @@ function frontendMessage(oMessage) { oCell.style.width = '60px'; oImg = document.createElement('img'); - oImg.src = oGeneralProperties.path_htmlbase+'/nagvis/images/internal/msg_'+sBoxType+'.png'; + oImg.src = oGeneralProperties.path_htmlbase+'/nagvis/images/internal/msg_'+sBoxType.toLowerCase()+'.png'; oCell.appendChild(oImg); oImg = null; ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
