X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fsmarty3-templates.md;h=27e2a023057cfdda77b56ff808d274ebcc411f97;hb=846007d031427d2f559c536a2a0d9cab669ae231;hp=1fadcb22148374ce69b12027a88e18e90d29e1ff;hpb=144d4d9cf563796278f6060ac4f7cb13a21ba4ae;p=friendica.git diff --git a/doc/smarty3-templates.md b/doc/smarty3-templates.md index 1fadcb2214..27e2a02305 100644 --- a/doc/smarty3-templates.md +++ b/doc/smarty3-templates.md @@ -39,7 +39,7 @@ They are initialized with an array of data, depending on the tyle of the field. All of these take an array holding the values, e.g. for a one line text input field, which is required and should be used to type email addesses use something along the lines of: - '$adminmail' => array('adminmail', L10n::t('Site administrator email address'), $adminmail, L10n::t('Your account email address must match this in order to use the web admin panel.'), 'required', '', 'email'), + '$adminmail' => array('adminmail', DI::l10n()->t('Site administrator email address'), $adminmail, DI::l10n()->t('Your account email address must match this in order to use the web admin panel.'), 'required', '', 'email'), To evaluate the input value, you can then use the $_POST array, more precisely the $_POST['adminemail'] variable.