Import/Core_email.php
authorAlan Knowles <alan@roojs.com>
Tue, 6 Oct 2015 05:59:17 +0000 (13:59 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 6 Oct 2015 05:59:17 +0000 (13:59 +0800)
Import/Core_email.php

index 4e487a5..171984f 100644 (file)
@@ -62,8 +62,8 @@ class Pman_Core_Import_Core_email extends Pman
          
         $c = DB_dataObject::factory('core_email');
         $ret = $c->get('name',$template_name);
-        if($ret ) {
-            $this->jerr("we do not support updating the files ... - especially if the user has changed them!!");
+        if($ret && empty($opts['update'])) {
+            $this->jerr("use --update 1 to update the template..");
         }
         
         $mailtext = file_get_contents($opts['file']);