diff --git a/application/seeds/006_vorlage.php b/application/seeds/006_vorlage.php index 002cca77e..ce2b8d08b 100644 --- a/application/seeds/006_vorlage.php +++ b/application/seeds/006_vorlage.php @@ -15,12 +15,12 @@ class Seed_Vorlage echo "Seeding Standard templates (Vorlage) "; // OEen ohne Eltern holen $query = 'SELECT oe_kurzbz FROM public.tbl_organisationseinheit WHERE oe_parent_kurzbz IS NULL;'; - $oe = $this->db->query($query)->result(); + $oe = $this->fhc->db->query($query)->result(); // Insert Template MailRegistration $query= "INSERT INTO public.tbl_vorlage VALUES ('MailRegistration', 'eMail zur Registrierung', NULL, 'text/html', '{ \"\$schema\": \"http://json-schema.org/draft-03/schema#\", \"title\": \"Person\", \"type\": \"object\", \"properties\": { \"anrede\": { \"type\": \"string\", \"enum\": [ \"Herr\", \"Frau\" ], \"default\": \"Herr\" }, \"vorname\": { \"type\": \"string\", \"description\": \"Firstname\", \"minLength\": 2, \"default\": \"Vorname\" }, \"nachname\": { \"type\": \"string\", \"description\": \"Surename\", \"minLength\": 2, \"default\": \"Nachname\" }, \"code\": { \"type\": \"string\", \"description\": \"Accesscode\", \"minLength\": 6, \"default\": \"1q2w3e4r5t6z7u8i9o0\" }, \"link\": { \"type\": \"string\", \"description\": \"LoginURL\", \"minLength\": 6, \"default\": \"https://cis.fhcomplete.org/addon/aufnahme/cis/login/\" } }}'); "; - if (! $this->db->simple_query($query) + if (! $this->fhc->db->simple_query($query)) echo "Error adding Template MailRegistration!"; // Insert Vorlagetext @@ -32,7 +32,7 @@ class Seed_Vorlage
Unter folgenden Link können sie sich direkt für unser Service einloggen: {link}{code}
Mit freundlichen Grüßen,
FH Technikum Wien