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

index f5b80a3..ae8928b 100644 (file)
--- a/Print.php
+++ b/Print.php
@@ -167,11 +167,8 @@ class Pman_Xtuple_Print extends Pman
         $template  = '';
         if (isset($cfg['template'])) {
             
-            $template = '/report_templates'. '/'.$cfg['template']. '.xml';
-//            print_r(realpath($template));exit;
-            
-            print_r(file_get_contents($template));exit;
-            
+            $template = realpath(dirname(__FILE__).'/report_templates'). '/'.$cfg['template']. '.xml';
+            print_r($template);exit;
             unset($cfg['template']);
         }
         // do we have a localized version???