Improved human_status of ComponentPresenter

This commit is contained in:
phecho
2015-12-25 22:05:29 +08:00
parent c8d0a7dd39
commit 2a8dcb7bf0

View File

@@ -187,9 +187,7 @@ class IncidentPresenter extends AbstractPresenter
*/
public function human_status()
{
$statuses = trans('cachet.incidents.status');
return $statuses[$this->wrappedObject->status];
return trans('cachet.incidents.status.'.$this->wrappedObject->status);
}
/**