mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-02-05 19:43:22 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user