diff --git a/admin/registration/forms.php b/admin/registration/forms.php index 8eff8411bb428..5f89d0c0d9b40 100644 --- a/admin/registration/forms.php +++ b/admin/registration/forms.php @@ -329,6 +329,7 @@ public function definition() { array('class' => 'registration_textfield')); $mform->setType('contactphone', PARAM_TEXT); $mform->addHelpButton('contactphone', 'sitephone', 'hub'); + $mform->setForceLtr('contactphone'); $mform->addElement('text', 'contactemail', get_string('siteemail', 'hub'), array('class' => 'registration_textfield')); diff --git a/admin/tool/uploaduser/user_form.php b/admin/tool/uploaduser/user_form.php index dfd212372cd17..29cfec03e978e 100644 --- a/admin/tool/uploaduser/user_form.php +++ b/admin/tool/uploaduser/user_form.php @@ -211,11 +211,13 @@ function definition () { $mform->addRule('username', get_string('requiredtemplate', 'tool_uploaduser'), 'required', null, 'client'); $mform->disabledIf('username', 'uutype', 'eq', UU_USER_ADD_UPDATE); $mform->disabledIf('username', 'uutype', 'eq', UU_USER_UPDATE); + $mform->setForceLtr('username'); $mform->addElement('text', 'email', get_string('email'), 'maxlength="100" size="30"'); $mform->setType('email', PARAM_RAW); // No cleaning here. The process verifies it later. $mform->disabledIf('email', 'uutype', 'eq', UU_USER_ADD_UPDATE); $mform->disabledIf('email', 'uutype', 'eq', UU_USER_UPDATE); + $mform->setForceLtr('email'); // only enabled and known to work plugins $choices = uu_supported_auths(); @@ -281,6 +283,7 @@ function definition () { $mform->addElement('text', 'idnumber', get_string('idnumber'), 'maxlength="255" size="25"'); $mform->setType('idnumber', PARAM_NOTAGS); + $mform->setForceLtr('idnumber'); $mform->addElement('text', 'institution', get_string('institution'), 'maxlength="255" size="25"'); $mform->setType('institution', PARAM_TEXT); @@ -293,10 +296,12 @@ function definition () { $mform->addElement('text', 'phone1', get_string('phone1'), 'maxlength="20" size="25"'); $mform->setType('phone1', PARAM_NOTAGS); $mform->setAdvanced('phone1'); + $mform->setForceLtr('phone1'); $mform->addElement('text', 'phone2', get_string('phone2'), 'maxlength="20" size="25"'); $mform->setType('phone2', PARAM_NOTAGS); $mform->setAdvanced('phone2'); + $mform->setForceLtr('phone2'); $mform->addElement('text', 'address', get_string('address'), 'maxlength="255" size="25"'); $mform->setType('address', PARAM_TEXT); diff --git a/cache/stores/memcache/addinstanceform.php b/cache/stores/memcache/addinstanceform.php index 5a90f392b6ba7..27135ef3fc2e5 100644 --- a/cache/stores/memcache/addinstanceform.php +++ b/cache/stores/memcache/addinstanceform.php @@ -52,6 +52,7 @@ protected function configuration_definition() { $form->setType('prefix', PARAM_TEXT); // We set to text but we have a rule to limit to alphanumext. $form->setDefault('prefix', 'mdl_'); $form->addRule('prefix', get_string('prefixinvalid', 'cachestore_memcache'), 'regex', '#^[a-zA-Z0-9\-_]+$#'); + $form->setForceLtr('prefix'); $form->addElement('header', 'clusteredheader', get_string('clustered', 'cachestore_memcache')); diff --git a/cache/stores/memcached/addinstanceform.php b/cache/stores/memcached/addinstanceform.php index 004063aedd44b..d455b397562dc 100644 --- a/cache/stores/memcached/addinstanceform.php +++ b/cache/stores/memcached/addinstanceform.php @@ -73,6 +73,7 @@ protected function configuration_definition() { $form->setType('prefix', PARAM_TEXT); // We set to text but we have a rule to limit to alphanumext. $form->addHelpButton('prefix', 'prefix', 'cachestore_memcached'); $form->addRule('prefix', get_string('prefixinvalid', 'cachestore_memcached'), 'regex', '#^[a-zA-Z0-9\-_]+$#'); + $form->setForceLtr('prefix'); $hashoptions = cachestore_memcached::config_get_hash_options(); $form->addElement('select', 'hash', get_string('hash', 'cachestore_memcached'), $hashoptions); diff --git a/calendar/managesubscriptions_form.php b/calendar/managesubscriptions_form.php index 769a5b5408ca0..12ab3ac5b740e 100644 --- a/calendar/managesubscriptions_form.php +++ b/calendar/managesubscriptions_form.php @@ -60,6 +60,7 @@ public function definition() { $mform->addElement('text', 'url', get_string('importfromurl', 'calendar'), array('maxsize' => '255', 'size' => '50')); // Cannot set as PARAM_URL since we need to allow webcal:// protocol. $mform->setType('url', PARAM_RAW); + $mform->setForceLtr('url'); // Poll interval $choices = calendar_get_pollinterval_choices(); diff --git a/grade/edit/tree/calculation_form.php b/grade/edit/tree/calculation_form.php index fc5e08809d3f9..e6491995f74f0 100644 --- a/grade/edit/tree/calculation_form.php +++ b/grade/edit/tree/calculation_form.php @@ -59,6 +59,7 @@ function definition() { $mform->addElement('static', 'itemname', get_string('itemname', 'grades')); $mform->addElement('textarea', 'calculation', get_string('calculation', 'grades'), 'cols="60" rows="5"'); $mform->addHelpButton('calculation', 'calculation', 'grades'); + $mform->setForceLtr('calculation'); /// hidden params $mform->addElement('hidden', 'id', 0); diff --git a/install.php b/install.php index 4bdcf4113b4cd..5d1e8fcd8355b 100644 --- a/install.php +++ b/install.php @@ -435,34 +435,34 @@ $disabled = empty($distro->dbhost) ? '' : 'disabled="disabled'; echo '