/** * generic galleries function * * @return void * @author Andy Bennett */ function index() { $gid = gallery_helper::get_gallery_number(); $data = $this->get_list($gid); $data['gallery'] = $this->uri->segment(1); $data['view'] = $this->setup['view']; $data['gal'] = $gid; Event::run('show_gallery_list', $data); }