Module: nagvis
Branch: master
Commit: 970a93b6bd3c5af41e697f83742afb458982fd44
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=970a93b6bd3c5af41e697f83742afb458982fd44

Author: Lars Michelsen <[email protected]>
Date:   Mon Oct  4 18:32:19 2010 +0200

#367 frontend template system uses HTDOCS_DIR now

---

 .../nagvis-js/classes/FrontendTemplateSystem.php   |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/share/frontend/nagvis-js/classes/FrontendTemplateSystem.php 
b/share/frontend/nagvis-js/classes/FrontendTemplateSystem.php
index 161c0a6..3aaa27f 100644
--- a/share/frontend/nagvis-js/classes/FrontendTemplateSystem.php
+++ b/share/frontend/nagvis-js/classes/FrontendTemplateSystem.php
@@ -33,9 +33,11 @@ class FrontendTemplateSystem {
                $this->CORE = $CORE;
                
                // Load Dwoo. It is used as external library
-               
require_once($this->CORE->getMainCfg()->getValue('paths','base').'share/frontend/nagvis-js/ext/dwoo-1.1.0/dwooAutoload.php');
+               require_once($this->CORE->getMainCfg()->getValue('paths','base')
+                            
.HTDOCS_DIR.'/frontend/nagvis-js/ext/dwoo-1.1.0/dwooAutoload.php');
 
-               $this->TMPL = new 
Dwoo($this->CORE->getMainCfg()->getValue('paths','var').'tmpl/compile', 
$this->CORE->getMainCfg()->getValue('paths','var').'tmpl/cache');
+               $this->TMPL = new 
Dwoo($this->CORE->getMainCfg()->getValue('paths','var')
+                                      .'tmpl/compile', 
$this->CORE->getMainCfg()->getValue('paths','var').'tmpl/cache');
        }
        
        public function getTmplSys() {


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to