Jack Phoenix has uploaded a new change for review. https://gerrit.wikimedia.org/r/325269
Change subject: Remove old PHP entry point in favor of extension.json ...................................................................... Remove old PHP entry point in favor of extension.json MW 1.25 or newer is now explicitly required Change-Id: I9ac1fbcf84634c56613b530a5c389b92e255d350 --- D ProtectSite.php 1 file changed, 0 insertions(+), 56 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProtectSite refs/changes/69/325269/1 diff --git a/ProtectSite.php b/ProtectSite.php deleted file mode 100644 index 30fbd2f..0000000 --- a/ProtectSite.php +++ /dev/null @@ -1,56 +0,0 @@ -<?php -/** - * This extension provides Special:ProtectSite, which makes it possible for - * users with protectsite permissions to quickly lock down and restore various - * privileges for anonymous and registered users on a wiki. - * - * Knobs: - * 'protectsite' - Group permission to use the special page. - * $wgProtectSiteLimit - Maximum time allowed for protection of the site. - * $wgProtectSiteDefaultTimeout - Default protection time. - * $wgProtectSiteExempt - Array of non-sysop usergroups to be not effected by rights changes - * - * @file - * @ingroup Extensions - * @author Eric Johnston <e.wol...@gmail.com> - * @author Chris Stafford <c.staff...@gmail.com> - * @author Jack Phoenix <j...@countervandalism.net> - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - */ - -/* Extension Credits. Splarka wants me to be so UN:VAIN! Haet haet hat! */ -$wgExtensionCredits['specialpage'][] = array( - 'path' => __FILE__, - 'name' => 'Protect Site', - 'version' => '0.5.0', - 'author' => array( '[http://en.uncyclopedia.co/wiki/User:Dawg Eric Johnston]', 'Chris Stafford', 'Jack Phoenix' ), - 'descriptionmsg' => 'protectsite-desc', - 'url' => 'https://www.mediawiki.org/wiki/Extension:ProtectSite', - 'license-name' => 'GPL-2.0+', -); - -# Configuration settings -// Array of non-sysop user groups to be not effected by rights changes -$wgProtectSiteExempt = array(); - -/* Set the default timeout. */ -$wgProtectsiteDefaultTimeout = '1 hour'; - -// Maximum time allowed for protection of the site -$wgProtectSiteLimit = '1 week'; - -/* Register the new user rights level */ -$wgAvailableRights[] = 'protectsite'; - -/* Set the group access permissions */ -$wgGroupPermissions['bureaucrat']['protectsite'] = true; - -/* Add this special page to the special page listing array */ -$wgMessagesDirs['ProtectSite'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['ProtectSiteAliases'] = __DIR__ . '/ProtectSite.alias.php'; -$wgAutoloadClasses['ProtectSite'] = __DIR__ . '/ProtectSite.body.php'; -$wgAutoloadClasses['ProtectSiteForm'] = __DIR__ . '/ProtectSite.body.php'; -$wgSpecialPages['ProtectSite'] = 'ProtectSite'; - -/* Register initialization function */ -$wgExtensionFunctions[] = 'ProtectSite::setup'; \ No newline at end of file -- To view, visit https://gerrit.wikimedia.org/r/325269 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9ac1fbcf84634c56613b530a5c389b92e255d350 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ProtectSite Gerrit-Branch: master Gerrit-Owner: Jack Phoenix <j...@countervandalism.net> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits