/**
  * Checks requirements for migration
  *
  * @return  void
  * @since   1.0
  */
 public function check($dirs = array(), $tables = array(), $xml = false, $min_version = false, $max_version = false)
 {
     if ($this->path == JPATH_ROOT) {
         JFactory::getLanguage()->load('com_joomgallery.migratemvc2jux');
         $this->_mainframe->redirect('index.php?option=' . _JOOM_OPTION . '&controller=migration', JText::_('FILES_JOOMGALLERY_MIGRATION_MVC2JUX_WRONG_PATH2JOOMLA'), 'notice');
     }
     if (!$this->otherDatabase && $this->prefix == $this->_db->getPrefix()) {
         JFactory::getLanguage()->load('com_joomgallery.migratemvc2jux');
         $this->_mainframe->redirect('index.php?option=' . _JOOM_OPTION . '&controller=migration', JText::_('FILES_JOOMGALLERY_MIGRATION_MVC2JUX_WRONG_PREFIX'), 'notice');
     }
     $dirs = array($this->path_originals, $this->path_details, $this->path_thumbnails);
     $tables = array($this->table_images, $this->table_categories, $this->table_comments, $this->table_nameshields, $this->table_users, $this->table_votes);
     $xml = null;
     if ($this->path != '-') {
         $xml = JPath::clean($this->path . '/administrator/components/' . _JOOM_OPTION . '/joomgallery.xml');
     }
     $min_version = '1.5.7.5';
     $max_version = '1.5.7.5';
     parent::check($dirs, $tables, $xml, $min_version, $max_version);
 }
 /**
  * Checks requirements for migration
  *
  * @return  void
  * @since   1.6
  */
 public function check($dirs = array(), $tables = array(), $xml = false, $min_version = false, $max_version = false)
 {
     $tables = array($this->table_images, $this->table_categories, $this->table_comments, $this->table_users);
     $dirs = array($this->path_originals, $this->path_thumbnails);
     parent::check($dirs, $tables, $xml, $min_version, $max_version);
 }