MDL-56297 theme_boost: Obey usefilepicker option
URL form fields support 'usefilepicker' option to show/hide the file picker in some forms.
This commit is contained in:
+1
-1
@@ -185,7 +185,7 @@ EOD;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user