Skip to content
Permalink
Browse files

MDL-56297 theme_boost: Obey usefilepicker option

URL form fields support 'usefilepicker' option to show/hide the file picker in some forms.
  • Loading branch information...
damyon committed Oct 28, 2016
1 parent 577bd70 commit 0f13ffbc63f7762b1d1bcddcd97e4c2887898de9
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/form/url.php
@@ -185,7 +185,7 @@ function getElementTemplateType(){
public function export_for_template(renderer_base $output) {
$context = $this->export_for_template_base($output);
$context['filepickerhtml'] = $this->getFilePickerHTML();
$context['filepickerhtml'] = !empty($this->_options['usefilepicker']) ? $this->getFilePickerHTML() : '';
return $context;
}

0 comments on commit 0f13ffb

Please sign in to comment.
You can’t perform that action at this time.