Skip to content

Commit 6031287

Browse files
committed
- (Bug Fix) Fixed an issue with the templates path being wrong. Replace with the CRAFT_TEMPLATES_PATH constant.
1 parent 3b78e77 commit 6031287

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/parcel_types/DefaultParcelType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace Craft\Plugins\Postmaster\ParcelTypes;
33

44
use Craft\EntryModel;
5+
use Craft\PostmasterHelper;
56
use Craft\Postmaster_TransportModel;
67
use Craft\Plugins\Postmaster\Components\BaseParcelType;
78

models/Postmaster_EmailModel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ public function parse(Array $data = array())
2020
}
2121
}
2222

23+
2324
$oldPath = craft()->path->getTemplatesPath();
2425

25-
craft()->path->setTemplatesPath(CRAFT_BASE_PATH.'templates');
26+
craft()->path->setTemplatesPath(CRAFT_TEMPLATES_PATH);
2627

2728
if(!empty($this->bodyTemplate))
2829
{

0 commit comments

Comments
 (0)