/** * Check all files in any attachments * (See AttachmentsUpdate::check_files() in update.php for details ) */ public function check_files() { // Access check. if (!JFactory::getUser()->authorise('core.admin', 'com_attachments')) { return JError::raiseError(404, JText::_('JERROR_ALERTNOAUTHOR') . ' (ERR 157)'); } require_once JPATH_ADMINISTRATOR . '/components/com_attachments/update.php'; $msg = AttachmentsUpdate::check_files_existance(); if (JRequest::getBool('close')) { $this->enqueueSystemMessage($msg); // Close this window and refesh the parent window AttachmentsJavascript::closeModal(); } else { $this->setRedirect('index.php?option=' . $this->option, $msg); } }