More Standardisation work.

This commit is contained in:
Deon George
2016-08-03 14:00:51 +10:00
parent 85f08bbb0a
commit 5f84d2c14f
38 changed files with 276 additions and 100 deletions

View File

@@ -22,7 +22,7 @@ class Controller_User_Email extends Controller_Email {
$this->meta->title = 'Email List';
Block::factory()
->title(sprintf(_('System Emails Sent for %s: %s'),$this->ao->refnum(),$this->ao->name(TRUE)))
->title(sprintf(_('System Emails Sent for %s: %s'),$this->ao->refnum(),$this->ao->name()))
->title_icon($this->icon)
->body(View::factory('email/user/list')->set('o',$this->ao->email_log->find_all()));
}

View File

@@ -29,7 +29,7 @@ class Model_Email_Template extends ORM_OSB {
protected $_save_message = TRUE;
public function name() {
public function name($variable=NULL) {
return ! is_null($this->description) ? $this->description : $this->name;
}