Skip to content

Commit

Permalink
MDL-56275 blog: do not display the 'choose a link' button
Browse files Browse the repository at this point in the history
When registereing an external blog the choose a link button is
misleading, we don't have any repos which restrict to RSS feeds, so the
majority of results you get from the repo picker will be wrong.
  • Loading branch information
danpoltawski committed Oct 18, 2016
1 parent 6a69cda commit 9def79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/external_blog_edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function definition() {

$mform =& $this->_form;

$mform->addElement('url', 'url', get_string('url', 'blog'), array('size' => 50));
$mform->addElement('url', 'url', get_string('url', 'blog'), array('size' => 50), array('usefilepicker' => false));
$mform->setType('url', PARAM_URL);
$mform->addRule('url', get_string('emptyurl', 'blog'), 'required', null, 'client');
$mform->addHelpButton('url', 'url', 'blog');
Expand Down

0 comments on commit 9def79f

Please sign in to comment.