Skip to content

Commit

Permalink
MDL-53877 competency: Help and better validation text for evidence URL
Browse files Browse the repository at this point in the history
  • Loading branch information
gauts authored and junpataleta committed May 2, 2016
1 parent 3219a45 commit 3cd9461
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin/tool/lp/classes/form/user_evidence.php
Expand Up @@ -58,6 +58,7 @@ public function definition() {

$mform->addElement('url', 'url', get_string('userevidenceurl', 'tool_lp'), array(), array('usefilepicker' => false));
$mform->setType('url', PARAM_RAW_TRIMMED); // Can not use PARAM_URL, it silently converts bad URLs to ''.
$mform->addHelpButton('url', 'userevidenceurl', 'tool_lp');

$mform->addElement('filemanager', 'files', get_string('userevidencefiles', 'tool_lp'), array(),
$this->_customdata['fileareaoptions']);
Expand Down
1 change: 1 addition & 0 deletions admin/tool/lp/lang/en/tool_lp.php
Expand Up @@ -277,6 +277,7 @@
$string['userevidencesummary'] = 'Summary';
$string['userevidenceupdated'] = 'Evidence of prior learning updated';
$string['userevidenceurl'] = 'URL';
$string['userevidenceurl_help'] = 'The URL must start with \'http://\' or \'https://\'.';
$string['viewdetails'] = 'View details';
$string['visible'] = 'Visible';
$string['visible_help'] = 'A competency framework can be hidden from teachers. This could be useful if a framework is still in the process of being developed.';
Expand Down
2 changes: 1 addition & 1 deletion lang/en/competency.php
Expand Up @@ -106,7 +106,7 @@
$string['invalidpersistent'] = 'Invalid persistent';
$string['invalidplan'] = 'Invalid learning plan';
$string['invalidtaxonomy'] = 'Invalid taxonomy: {$a}';
$string['invalidurl'] = 'The URL is not valid.';
$string['invalidurl'] = 'The URL is not valid. Make sure it starts with \'http://\' or \'https://\'.';
$string['planstatusactive'] = 'Active';
$string['planstatuscomplete'] = 'Complete';
$string['planstatusdraft'] = 'Draft';
Expand Down

0 comments on commit 3cd9461

Please sign in to comment.