Skip to content

Commit

Permalink
remove sitenotice and enable uploads (#5378)
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Voidwalker authored Nov 21, 2023
1 parent a90feaf commit b76851f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 25 deletions.
7 changes: 0 additions & 7 deletions GlobalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,10 +653,3 @@
$wgMathMathMLUrl = 'http://[2a10:6740::6:504]:10044/';

$wgPropagateErrors = false;

// Disble ImportDump requests and uploads due to swift outage
$wgSpecialPages['RequestImportDump'] = DisabledSpecialPage::getCallback( 'RequestImportDump', 'Currently ImportDump requests cannot be processed due to ongoing issues with our file storage' );
$wgSpecialPages['RequestImportDumpQueue'] = DisabledSpecialPage::getCallback( 'RequestImportDumpQueue', 'Currently ImportDump requests cannot be processed due to ongoing issues with our file storage' );
$wgRevokePermissions['*']['upload'] = true;
$wgRevokePermissions['*']['movefile'] = true;
$wgUploadMaintenance = true;
36 changes: 18 additions & 18 deletions Sitenotice.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

// Global SiteNotice
if ( !$wmgSiteNoticeOptOut ) {
/*if ( !$wmgSiteNoticeOptOut ) {
$wgHooks['SiteNoticeAfter'][] = 'wfGlobalSiteNotice';
function wfGlobalSiteNotice( &$siteNotice, $skin ) {
Expand All @@ -38,7 +38,7 @@ function wfGlobalSiteNotice( &$siteNotice, $skin ) {
</table>
EOF;
}
}
}*/

// Specific wiki SiteNotice
if ( $wi->isExtensionActive( 'Graph' ) ) {
Expand Down Expand Up @@ -90,22 +90,22 @@ function wfMetaSiteNotice( &$siteNotice, $skin ) {
'.skin-cosmos #sitenotice-learnmore-button { margin-left: 50px; }'
);
$siteNotice .= <<<EOF
<table style="width: 100%;">
<tbody>
<tr>
<td style="border-left: 4px solid #fc3; background-color: #fef6e7; padding: 10px 15px;">
<div style="padding-top: 0.3em; padding-bottom: 0.1em; font-size: 100%;">
<img alt="OOjs UI icon web-progressive" src="https://upload.wikimedia.org/wikipedia/commons/9/9e/OOjs_UI_icon_web-progressive.svg" decoding="async" width="35" height="35" style="float: left; margin-right: 10px;">
<div style="font-weight: bold;">Vacancy</div>
SRE is looking for Software Engineers to join our MediaWiki Team to develop code to improve the user experience of Miraheze users, build tools that allow communities to grow, and tools that support our valuable volunteers in managing a dynamic and active global community. If you think this could be you, please do have a look at the <a href="https://meta.miraheze.org/wiki/Miraheze_Vacancies#Software_Engineer_(Developer)_(MediaWiki)">the Vacancies page</a> which includes more information.
</div> <br /> Other vacancies are also available on that page.
</td>
</tr>
<tr>
<td style="height: 10px;"></td>
</tr>
</tbody>
</table>
<table style="width: 100%;">
<tbody>
<tr>
<td style="border-left: 4px solid #fc3; background-color: #fef6e7; padding: 10px 15px;">
<div style="padding-top: 0.3em; padding-bottom: 0.1em; font-size: 100%;">
<img alt="OOjs UI icon web-progressive" src="https://upload.wikimedia.org/wikipedia/commons/9/9e/OOjs_UI_icon_web-progressive.svg" decoding="async" width="35" height="35" style="float: left; margin-right: 10px;">
<div style="font-weight: bold;">Vacancy</div>
SRE is looking for Software Engineers to join our MediaWiki Team to develop code to improve the user experience of Miraheze users, build tools that allow communities to grow, and tools that support our valuable volunteers in managing a dynamic and active global community. If you think this could be you, please do have a look at the <a href="https://meta.miraheze.org/wiki/Miraheze_Vacancies#Software_Engineer_(Developer)_(MediaWiki)">the Vacancies page</a> which includes more information.
</div> <br /> Other vacancies are also available on that page.
</td>
</tr>
<tr>
<td style="height: 10px;"></td>
</tr>
</tbody>
</table>
EOF;
}
}

0 comments on commit b76851f

Please sign in to comment.