Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Undefined function regex_quote() on add user page
Browse files Browse the repository at this point in the history
Fix for webtrees issue:
fisharebest/webtrees#31
  • Loading branch information
Nigel Osborne committed Jan 14, 2014
1 parent 08338c6 commit 8a79152
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@
}

init_calendar_popup();
$controller->addInlineJavascript('
$controller
->addInlineJavascript('function regex_quote(str) {return str.replace(/[\\\\.?+*()[\](){}|]/g, "\\\\$&");}')
->addInlineJavascript('
function checkform(frm) {
if (frm.username.value=="") {
alert("'.WT_I18N::translate('You must enter a user name.').'");
Expand Down

0 comments on commit 8a79152

Please sign in to comment.