Changeset 201 for trunk/trax/vendor/trax/action_mailer.php
- Timestamp:
- 05/25/06 02:58:10 (6 years ago)
- Files:
-
- 1 modified
-
trunk/trax/vendor/trax/action_mailer.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_mailer.php
r200 r201 59 59 'args' => '-i -t' 60 60 ), 61 $views_file_extention = TRAX_VIEWS_EXTENTION,62 61 $delivery_method = "mail", # mail | sendmail | smtp | test 63 62 $perform_deliveries = true, # true will attempt to deliver mail | false will not deliver mail … … 217 216 */ 218 217 private function initialize_defaults($method_name) { 219 $this->template_root = T RAX_ROOT . $GLOBALS['TRAX_INCLUDES']['views'];218 $this->template_root = Trax::$views_path; 220 219 $this->template_path = "{$this->template_root}/".Inflector::underscore(get_class($this)); 221 220 $this->template = $this->template ? $this->template : $method_name; … … 278 277 function render_message($method_name, $body = array()) { 279 278 if(strstr($method_name, "/")) { 280 $template = "{$this->template_root}/{$method_name}. {$this->views_file_extention}";281 } else { 282 $template = "{$this->template_path}/{$method_name}. {$this->views_file_extention}";279 $template = "{$this->template_root}/{$method_name}.".Trax::$views_extension; 280 } else { 281 $template = "{$this->template_path}/{$method_name}.".Trax::$views_extension; 283 282 } 284 283
