diff --git a/e107_admin/users.php b/e107_admin/users.php index 8840448ea..ac250740c 100644 --- a/e107_admin/users.php +++ b/e107_admin/users.php @@ -1625,7 +1625,7 @@ class users_admin_ui extends e_admin_ui ".USRLAN_128."
- ".$frm->text('loginname', varset($user_data['user_loginname']), varset($pref['loginname_maxlength'], 30), array('size'=>'xlarge'))."   + ".$frm->text('loginname', varset($user_data['user_loginname']), varset($pref['loginname_maxlength'], 30), array('size'=>'xlarge', 'required'=>1))."   ".$frm->checkbox_label(USRLAN_170, 'generateloginname', 1, varset($pref['predefinedLoginName'], false))."
diff --git a/e107_tests/tests/unit/plugins/linkwords/e_tohtml_linkwordsTest.php b/e107_tests/tests/unit/plugins/linkwords/e_tohtml_linkwordsTest.php index 0739ecad5..5d5b32625 100644 --- a/e107_tests/tests/unit/plugins/linkwords/e_tohtml_linkwordsTest.php +++ b/e107_tests/tests/unit/plugins/linkwords/e_tohtml_linkwordsTest.php @@ -101,6 +101,24 @@ } } + + function testToHTMLWordLimit() + { + $text1 = "

here is text link

"; + $text2 = "

and another link text

"; + $text3 = "

and another paragraph of text with a link

"; + $text4 = "

and yet another link to do

"; + + $this->lw->toHTML($text1, 'BODY'); + $this->lw->toHTML($text2, 'BODY'); + $result1 = $this->lw->toHTML($text3, 'BODY'); + $result2 = $this->lw->toHTML($text4, 'BODY'); + + $this->assertSame('

and another paragraph of text with a link

', $result1); + $this->assertSame('

and yet another link to do

', $result2); + + + } /* public function testLinksproc() {