Skip to content

Commit

Permalink
Add configs for spacewiki (#5541)
Browse files Browse the repository at this point in the history
It turns core namespaces names lowercase. I tested this on a test wiki
and it seems to work.
  • Loading branch information
anpang54 committed Apr 22, 2024
1 parent 6c93cea commit 3bffeea
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions LocalWiki.php
Expand Up @@ -465,6 +465,23 @@ function onBeforePageDisplay( OutputPage $out ) {
],
];

break;
case 'spacewiki':
$wgExtraNamespaces += [
NS_TALK => 'talk',
NS_USER => 'user',
NS_USER_TALK => 'user-talk',
NS_FILE => 'file',
NS_FILE_TALK => 'file-talk',
NS_MEDIAWIKI => 'mediawiki',
NS_MEDIAWIKI_TALK => 'mediawiki-talk',
NS_TEMPLATE => 'template',
NS_TEMPLATE_TALK => 'template-talk',
NS_HELP => 'guide',
NS_HELP_TALK => 'guide-talk',
NS_CATEGORY => 'category',
NS_CATEGORY_TALK => 'category-talk'
];
break;
case 'srewiki':
wfLoadExtension( 'LdapAuthentication' );
Expand Down

0 comments on commit 3bffeea

Please sign in to comment.