Print.php
authorEdward <edward@roojs.com>
Fri, 30 May 2014 07:24:12 +0000 (15:24 +0800)
committerEdward <edward@roojs.com>
Fri, 30 May 2014 07:24:12 +0000 (15:24 +0800)
Print.php

index 35d5631..9a463c7 100644 (file)
--- a/Print.php
+++ b/Print.php
@@ -167,7 +167,7 @@ class Pman_Xtuple_Print extends Pman
         $template  = '';
         if (isset($cfg['template'])) {
             
-            $template = realpath(dirname(__FILE__).'/report_templates'). '/'.$cfg['template']. '.xml';
+            $template = realpath($roo->rootURL . '/report_templates'). '/'.$cfg['template']. '.xml';
             unset($cfg['template']);
         }
         // do we have a localized version???