mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
- AuthLib is loaded only in fhcauth_helper, PermissionLib and REST_Controller
- Removed all the NOT usefull loads of helpers and libraries - Fixed undefined index in controllers/system/UDF and model system/UDF_model - APIv1_Controller now loads helper fhcauth - FHC_Controller now loads ithe fhc and session helpers too - Added/Fixed comments - PermissionLib does NOT use anymore the getAuthUID function from the fhcauth helper, now relies on AuthLib directly - REST_Controller loads directly the AuthLib when is needed
This commit is contained in:
@@ -10,7 +10,7 @@ class Seed_Message
|
||||
$this->fhc =& get_instance();
|
||||
$this->fhc->load->helper('fhc');
|
||||
}
|
||||
|
||||
|
||||
public function seed($limit = 50)
|
||||
{
|
||||
echo "Seeding $limit messages ";
|
||||
@@ -18,11 +18,11 @@ class Seed_Message
|
||||
$db = $this->fhc->db->query('SELECT person_id FROM public.tbl_person LIMIT 100;');
|
||||
$person = $db->result();
|
||||
$num_persons = $db->num_rows();
|
||||
|
||||
|
||||
for ($i = 0; $i < $limit; $i++)
|
||||
{
|
||||
echo ".";
|
||||
|
||||
|
||||
$data = array
|
||||
(
|
||||
'subject' => $this->fhc->faker->sentence(4, true),
|
||||
@@ -43,9 +43,9 @@ class Seed_Message
|
||||
if (!$recipient)
|
||||
show_error($recipient);
|
||||
}
|
||||
|
||||
|
||||
echo PHP_EOL;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function truncate()
|
||||
@@ -53,4 +53,3 @@ class Seed_Message
|
||||
$this->fhc->db->query('DELETE FROM public.msg_message;');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user