Skip to content

Commit

Permalink
restrict disabled extensions and add help message (#5389)
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Voidwalker authored Dec 2, 2023
1 parent a44eb8f commit cadc27b
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions ManageWikiExtensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,11 @@
'jsonconfig',
'codeeditor',
],
'permissions' => [
'managewiki-restricted',
],
],
'help' => 'This extension has been globally disabled. See <a href="https://phabricator.miraheze.org/T10756">T10756</a> for details.',
'section' => 'parserhooks',
],
'groupssidebar' => [
Expand Down Expand Up @@ -888,7 +892,12 @@
'linkPage' => 'https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:RegexFunctions',
'var' => 'wmgUseRegexFunctions',
'conflicts' => false,
'requires' => [],
'requires' => [
'permissions' => [
'managewiki-restricted',
],
],
'help' => 'This extension has been globally disabled. See <a href="https://phabricator.miraheze.org/T10882">T10882</a> for details.',
'section' => 'parserhooks',
],
'rightfunctions' => [
Expand Down Expand Up @@ -1467,6 +1476,7 @@
'managewiki-restricted',
],
],
'help' => 'This extension has been globally disabled. See <a href="https://phabricator.miraheze.org/T10883">T10883</a> for details.',
'install' => [
'sql' => [
'hit_counter' => "$IP/extensions/HitCounters/sql/page_counter.sql",
Expand Down Expand Up @@ -2215,7 +2225,12 @@
'linkPage' => 'https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:EditNotify',
'var' => 'wmgUseEditNotify',
'conflicts' => false,
'requires' => [],
'requires' => [
'permissions' => [
'managewiki-restricted',
],
],
'help' => 'This extension has been globally disabled, please see <a href="https://phabricator.miraheze.org/T10885">T10885</a> for details.',
'section' => 'other',
],
'editsubpages' => [
Expand Down Expand Up @@ -3549,7 +3564,12 @@
'linkPage' => 'https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:WikiForum',
'var' => 'wmgUseWikiForum',
'conflicts' => false,
'requires' => [],
'requires' => [
'permissions' => [
'managewiki-restricted',
],
],
'help' => 'This extension has been globally disabled. See <a href="https://phabricator.miraheze.org/T10871">T10871</a> for details.',
'install' => [
'sql' => [
'wikiforum_forums' => "$IP/extensions/WikiForum/sql/wikiforum.sql"
Expand Down

0 comments on commit cadc27b

Please sign in to comment.