feat(core): rename $wgCitizenPortalAttach to $wgCitizenSiteToolsPortlet

The previous name was not self-explanatory.
This commit is contained in:
alistair3149 2022-05-18 19:54:08 -04:00
parent 64ffd3642b
commit 851356f3d9
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C
3 changed files with 5 additions and 5 deletions

View file

@ -90,8 +90,8 @@ Name | Description | Values | Default
`$wgCitizenThemeDefault` | The default theme of the skin | `auto` - switch between light and dark according to OS/browser settings; `light`; `dark` | `auto`
`$wgCitizenEnableCollapsibleSections` | Enables or disable collapsible sections on content pages | `true` - enable; `false` - disable | `true`
`$wgCitizenShowPageTools` | The condition of page tools visibility | `true` - always visible; `login` - visible to logged-in users; `permission` - visible to users with the right permissions | `true`
`$wgCitizenSiteToolsPortlet` | ID of the portlet to attach the site tools | string |
`$wgCitizenEnableDrawerSiteStats` | Enables the site statistics in drawer menu | `true` - enable; `false` - disable | `true`
`$wgCitizenPortalAttach` | Label of the portal to attach links to upload and special pages to | string | `first`
`$wgCitizenThemeColor` | The color defined in the `theme-color` meta tag | Hex color code | `#131a21`
### Search suggestions

View file

@ -103,7 +103,7 @@ final class Drawer extends Partial {
* @return array
*/
private function addSiteTools( $drawer, $portletCount ): array {
$id = $this->getConfigValue( 'CitizenPortalAttach' );
$id = $this->getConfigValue( 'CitizenSiteToolsPortlet' );
$html = $this->getSiteToolsHTML();
// Attach to first portlet if empty

View file

@ -734,10 +734,10 @@
"descriptionmsg": "citizen-config-showpagetools",
"public": true
},
"PortalAttach": {
"SiteToolsPortlet": {
"value": "",
"description": "Label of the portal to attach links to upload and special pages to",
"descriptionmsg": "citizen-config-portalattach",
"description": "ID of the portlet to attach the site tools",
"descriptionmsg": "citizen-config-sitetoolsportlet",
"public": true
},
"EnableCollapsibleSections": {