public function getTotal() { if (PFMigratorHelper::fmProInstalled()) { return count($this->getTables()); } return 1; }
public function getTotal() { if (!PFMigratorHelper::fmProInstalled()) { return 1; } $query = $this->_db->getQuery(true); $query->select('COUNT(*)')->from('#__pf_note_versions_tmp'); $this->_db->setQuery($query); $total = (int) $this->_db->loadResult(); return $total; }