Browse Source

Update to new View class methods

ADmad 10 years ago
parent
commit
8cd28e3439
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Mailer/Email.php

+ 2 - 2
src/Mailer/Email.php

@@ -1814,7 +1814,7 @@ class Email implements JsonSerializable, Serializable
         $View = $this->createView();
         $View->loadHelpers();
 
-        list($templatePlugin) = pluginSplit($View->view());
+        list($templatePlugin) = pluginSplit($View->template());
         list($layoutPlugin) = pluginSplit($View->layout());
         if ($templatePlugin) {
             $View->plugin = $templatePlugin;
@@ -1828,7 +1828,7 @@ class Email implements JsonSerializable, Serializable
 
         foreach ($types as $type) {
             $View->hasRendered = false;
-            $View->viewPath('Email/' . $type);
+            $View->templatePath('Email/' . $type);
             $View->layoutPath('Email/' . $type);
 
             $render = $View->render();