DataObjects/Core_email.php
[Pman.Core] / UpdateDatabase.php
index e8c86de..461bcdf 100644 (file)
@@ -150,7 +150,7 @@ class Pman_Core_UpdateDatabase extends Pman
         $ff = HTML_FlexyFramework::get();
         
         if(!isset($ff->Pman) || !isset($ff->Pman['local_base_url'])){
-            die("Please setup local_base_url");
+            die("Please setup Pman[local_base_url]\n");
         }
         
         $this->local_base_url = $ff->Pman['local_base_url'];
@@ -744,7 +744,8 @@ class Pman_Core_UpdateDatabase extends Pman
                             
                         
                     )
-                ),
+                )
+               
             )
         ); 
         
@@ -768,6 +769,8 @@ class Pman_Core_UpdateDatabase extends Pman
                 'name' => 'core-person-signup-bcc',
                 'type' => 0, // system
             ),
+        
+
         ));
         
     }
@@ -838,12 +841,13 @@ class Pman_Core_UpdateDatabase extends Pman
                 
                 $cm->bcc_group = $g->id;
             }
-            if (empty($cm->test_class)) {
+            // initEmails will always have the latest location of the test class - in theory the user should not be changign the value of this...
+            //if (empty($cm->test_class)) {
                 if (empty($data['test_class'])) {
                     $this->jerr("missing test_class for template $name");
                 }
                 $cm->test_class = $data['test_class'];
-            }
+            //}
             require_once $cm->test_class . '.php';
             
             $clsname = str_replace('/','_', $cm->test_class);
@@ -1086,7 +1090,7 @@ class Pman_Core_UpdateDatabase extends Pman
         
         // these are required - and have simple dependancies.
         require_once 'System.php';
-        $req = $req != false ? $req : array( 
+        $req = $req !== false ? $req : array( 
             'convert',
             'grep',
             'pdfinfo',
@@ -1099,7 +1103,7 @@ class Pman_Core_UpdateDatabase extends Pman
          
          
         // these are prefered - but may have complicated depenacies
-        $pref = $pref != false ? $pref :  = array(
+        $pref = $pref !== false ? $pref :  array(
             'abiword',
             'faad',
             'ffmpeg',
@@ -1182,4 +1186,4 @@ class Pman_Core_UpdateDatabase extends Pman
     
     
     
-}
\ No newline at end of file
+}