getClientId() == 1) $append = 'administrator/'; JHTML::_('script' , 'popup-imagemanager.js', $append .'components/com_media/assets/'); JHTML::_('stylesheet', 'popup-imagemanager.css', $append .'components/com_media/assets/'); if ($config->get('enable_flash', 0)) { JHTML::_('behavior.uploader', 'file-upload', array('onAllComplete' => 'function(){ ImageManager.refreshFrame(); }')); } /* * Display form for FTP credentials? * Don't set them here, as there are other functions called before this one if there is any file write operation */ jimport('joomla.client.helper'); $ftp = !JClientHelper::hasCredentials('ftp'); $this->assignRef( 'session', JFactory::getSession()); $this->assignRef( 'config', $config); $this->assignRef( 'state', $this->get('state')); $this->assignRef( 'folderList', $this->get('folderList')); $this->assign('require_ftp', $ftp); parent::display($tpl); } }