isClient('administrator')) { return $app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'warning'); } // Do not allow cache $app->allowCache(false); $this->images = $this->get('images'); $this->documents = $this->get('documents'); $this->folders = $this->get('folders'); $this->videos = $this->get('videos'); $this->state = $this->get('state'); // Check for invalid folder name if (empty($this->state->folder)) { $dirname = JFactory::getApplication()->input->getPath('folder', ''); if (!empty($dirname)) { $dirname = htmlspecialchars($dirname, ENT_COMPAT, 'UTF-8'); JError::raiseWarning(100, JText::sprintf('COM_MEDIA_ERROR_UNABLE_TO_BROWSE_FOLDER_WARNDIRNAME', $dirname)); } } $user = JFactory::getUser(); $this->canDelete = $user->authorise('core.delete', 'com_media'); parent::display($tpl); } }