Cosmetic changes to code, better wording in list_cards view, generalised validation errors to all forms, not just #ecard_form

This commit is contained in:
Ismo Vuorinen
2013-07-17 13:55:21 +03:00
parent 769dac1fce
commit 78cb7b2eee
6 changed files with 32 additions and 26 deletions

View File

@@ -113,7 +113,9 @@ class Yllapito extends CI_Controller
if (empty($limit)) {
$data['cards'] = $this->ecard->order_by('created_at')->get_all();
} else {
$data['cards'] = $this->ecard->order_by('created_at')->get_many_by('card_status', $limit);
$data['cards'] = $this->ecard
->order_by('created_at')
->get_many_by('card_status', $limit);
}
$data['page_title'] = array_merge($page_title, $data['page_title']);
@@ -156,7 +158,6 @@ class Yllapito extends CI_Controller
break;
}
$data['page_title'] = array_merge($page_title, $data['page_title']);
$page = 'yllapito/users_'.$section;