Commit b32e5dd5 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1892103: add extension to file browser filter

behatnotneeded

Change-Id: I7268d8984163fe9c20f1f0cc1913356a62cc1143
parent 3d7d15aa
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -644,12 +644,10 @@ class Collection {
                'description'  => get_string('coverimagedescription', 'view'),
                'folder'       => $folder,
                'highlight'    => $highlight,
                'accept'       => 'image/jpg,image/png',
                'accept'       => 'image/*',
                'institution'  => $this->institution,
                'group'        => $this->group,
        //         // 'browse'       => $browse,
                'page'         => '',
        //         // 'browsehelp'   => 'browsemyfiles',
                'filters'      => array(
                     'artefacttype' => array('image'),
                ),
+1 −3
Original line number Diff line number Diff line
@@ -418,12 +418,10 @@ function get_advanced_elements() {
        'description'  => get_string('coverimagedescription', 'view'),
        'folder'       => $folder,
        'highlight'    => $highlight,
        'accept'       => 'image/jpg,image/png',
        'accept'       => 'image/*',
        'institution'  => $institution,
        'group'        => $group,
//         // 'browse'       => $browse,
        'page'         => $view->get_url() . '&browse=1',
//         // 'browsehelp'   => 'browsemyfiles',
        'filters'      => array(
             'artefacttype' => array('image'),
        ),