Sfoglia il codice sorgente

Option #2, preferred but will be a b/c if someone has default MediaWiki:Helppage

Tom Hutchison 9 anni fa
parent
commit
498def8cfe
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Foreground.skin.php

+ 2 - 2
Foreground.skin.php

@@ -17,7 +17,7 @@ class Skinforeground extends SkinTemplate {
 		$wgForegroundFeaturesDefaults = array(
 			'showActionsForAnon' => true,
 			'NavWrapperType' => 'divonly',
-			'showHelpUnderTools' => true,
+			'showHelpUnderTools' => true,		
 			'showRecentChangesUnderTools' => true,
 			'wikiName' => &$GLOBALS['wgSitename'],
 			'navbarIcon' => false,
@@ -136,7 +136,7 @@ class foregroundTemplate extends BaseTemplate {
 					<ul id="toolbox-dropdown" class="dropdown">
 						<?php foreach ( $this->getToolbox() as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
 						<?php if ($wgForegroundFeatures['showRecentChangesUnderTools']): ?><li id="n-recentchanges"><?php echo Linker::specialLink('Recentchanges') ?></li><?php endif; ?>
-						<?php if ($wgForegroundFeatures['showHelpUnderTools']): ?><li id="n-help" <?php echo Linker::tooltip('help') ?>><a href="/wiki/Help:Contents"><?php echo wfMessage( 'help' )->text() ?></a></li><?php endif; ?>
+						<?php if ($wgForegroundFeatures['showHelpUnderTools']): ?><li id="n-help" <?php echo Linker::tooltip('help') ?>><a href="<?php echo Skin::makeInternalOrExternalUrl( wfMessage( 'helppage' )->inContentLanguage()->text() )?>"><?php echo wfMessage( 'help' )->text() ?></a></li><?php endif; ?>
 					</ul>
 				</li>