# change page stability settings # Bots are granted autoreview via hooks, mark in rights # array so that it shows up in sp:ListGroupRights... $wgGroupPermissions['bot']['autoreview'] = true; # Define user preferences $wgDefaultUserOptions['flaggedrevssimpleui'] = (int) $wgSimpleFlaggedRevsUI; $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()