allowCache(false); $this->t = PhocaGalleryUtils::setVars('f'); $this->r = new PhocaGalleryRenderAdminview(); $document = Factory::getDocument(); $path = PhocaGalleryPath::getPath(); $this->field = Factory::getApplication()->input->get('field'); $this->fce = 'phocaSelectFolder_'.$this->field; /*$this->assignRef('session', JFactory::getSession()); $this->assign('path_orig_rel', $path->image_rel); $this->assignRef('folders', $this->get('folders')); $this->assignRef('state', $this->get('state'));*/ $this->t['session'] = Factory::getSession(); $this->t['path_orig_rel'] = $path->image_rel; $this->t['folders'] = $this->get('folders'); $this->t['state'] = $this->get('state'); parent::display($tpl); } protected function setFolder($index = 0) { if (isset($this->t['folders'][$index])) { $this->_tmp_folder = $this->t['folders'][$index]; } else { $this->_tmp_folder = new CMSObject; } } } ?>