/** * @return bool */ public function isCompatibilityViewEnabled(Project $project) { $plugin_has_view_enabled = (bool) forge_get_config('enable_compatibility_view', 'mediawiki'); $result = $this->dao->getCompatibilityViewUsage($project->getID()); if (!$result) { return false; } return $plugin_has_view_enabled && (bool) $result['enable_compatibility_view']; }