diff options
Diffstat (limited to 'SemanticMediaWiki/includes/src/MediaWiki/Hooks/SkinTemplateNavigation.php')
-rw-r--r-- | SemanticMediaWiki/includes/src/MediaWiki/Hooks/SkinTemplateNavigation.php | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/SemanticMediaWiki/includes/src/MediaWiki/Hooks/SkinTemplateNavigation.php b/SemanticMediaWiki/includes/src/MediaWiki/Hooks/SkinTemplateNavigation.php deleted file mode 100644 index 09fd3e22..00000000 --- a/SemanticMediaWiki/includes/src/MediaWiki/Hooks/SkinTemplateNavigation.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php - -namespace SMW\MediaWiki\Hooks; - -use SkinTemplate; - -/** - * Alter the structured navigation links in SkinTemplates. - * - * @see https://www.mediawiki.org/wiki/Manual:Hooks/SkinTemplateNavigation - * - * @license GNU GPL v2+ - * @since 2.0 - * - * @author mwjames - */ -class SkinTemplateNavigation { - - /** - * @var SkinTemplate - */ - private $skinTemplate = null; - - /** - * @var array - */ - private $links; - - /** - * @since 2.0 - * - * @param SkinTemplate $skinTemplate - * @param array $links - */ - public function __construct( SkinTemplate &$skinTemplate, array &$links ) { - $this->skinTemplate = $skinTemplate; - $this->links =& $links; - } - - /** - * @since 2.0 - * - * @return true - */ - public function process() { - - if ( $this->skinTemplate->getUser()->isAllowed( 'purge' ) ) { - $this->links['actions']['purge'] = array( - 'class' => false, - 'text' => $this->skinTemplate->msg( 'smw_purge' )->text(), - 'href' => $this->skinTemplate->getTitle()->getLocalUrl( array( 'action' => 'purge' ) ) - ); - } - - return true; - } - -} |