From 05f568d4a464ab466dfaa0376b5c8c57ababfb42 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 20 Feb 2014 19:13:46 +0800 Subject: [PATCH] MailTemplateList.php --- MailTemplateList.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MailTemplateList.php b/MailTemplateList.php index cbdfb5b6..4df56113 100644 --- a/MailTemplateList.php +++ b/MailTemplateList.php @@ -11,7 +11,7 @@ class Pman_Core_MailTemplateList extends Pman_Core_ConvertStyle $templateDir = explode(PATH_SEPARATOR, $fopts['templateDir']); -// $base = 'http://' . $_SERVER['SERVER_NAME'] . $this->rootURL; + $base = 'http://' . $_SERVER['SERVER_NAME'] . $this->rootURL; // $path = '/home/edward/gitlive/web.madeinnz/Pman/Shop/templates/mail/orderShipment.body.html'; // @@ -33,11 +33,11 @@ class Pman_Core_MailTemplateList extends Pman_Core_ConvertStyle continue; } - $file = "$dir/mail/$entry"; + $path = "$dir/mail/$entry"; $ret[] = array( 'file' => $entry, - 'content' => $this->convertStyle('', $file, false) + 'content' => $this->convertStyle($base, $path, false) ); } -- 2.39.2