$wgDefaultUserOptions['flaggedrevsstable'] = FR_SHOW_STABLE_DEFAULT; $wgDefaultUserOptions['flaggedrevseditdiffs'] = true; $wgDefaultUserOptions['flaggedrevsviewdiffs'] = false; # Add review log $wgLogTypes[] = 'review'; # Add stable version log $wgLogTypes[] = 'stable'; # Log name and description as well as action handlers FlaggedRevsUISetup::defineLogBasicDescription($wgLogNames, $wgLogHeaders, $wgFilterLogTypes); FlaggedRevsUISetup::defineLogActionHandlers($wgLogActions, $wgLogActionsHandlers); # AJAX functions FlaggedRevsUISetup::defineAjaxFunctions($wgAjaxExportList); # Special case page cache invalidations $wgJobClasses['flaggedrevs_CacheUpdate'] = 'FRExtraCacheUpdateJob'; # Load hooks that are always set FlaggedRevsSetup::setUnconditionalHooks(); # Load the extension after setup is finished $wgExtensionFunctions[] = 'efLoadFlaggedRevs'; /** * This function is for setup that has to happen in Setup.php * when the functions in $wgExtensionFunctions get executed. * Note: avoid calls to FlaggedRevs class here for performance. * @return void */ function efLoadFlaggedRevs() { # LocalSettings.php loaded, safe to load config FlaggedRevsSetup::setReady(); # Conditional autopromote groups FlaggedRevsSetup::setAutopromoteConfig(); # Register special pages (some are conditional)