Clean up [Details in desc]

Clean up comments
Center align credits
Add Kris to authors (for future work about to do)
Remove un-needed tabs on language strings, page aliases, hooks section
Clean up documentation to PHP standard (closing is */ not **/)
This commit is contained in:
Kris 2015-04-08 11:00:01 +01:00
parent 9a1c25c86d
commit 7d07723a8f

View file

@ -1,44 +1,41 @@
<?php
/**
* Tabber
* Tabber Main File
*
* @author Eric Fortin, Alexia E. Smith
* @author Eric Fortin, Alexia E. Smith, Kris Blair
* @license GPL
* @package Tabber
* @link https://www.mediawiki.org/wiki/Extension:Tabber
*
**/
*/
/******************************************/
/* Credits */
/******************************************/
/*****************************************/
/* Credits */
/*****************************************/
$credits = [
'path' => __FILE__,
'name' => 'Tabber',
'author' => ['Eric Fortin', 'Alexia E. Smith', 'Curse Inc. Wiki Platform Team'],
'author' => ['Eric Fortin', 'Alexia E. Smith', 'Curse Inc. Wiki Platform Team', 'Kris Blair'],
'url' => 'https://www.mediawiki.org/wiki/Extension:Tabber',
'descriptionmsg' => 'tabber-desc',
'version' => '2.0'
];
$wgExtensionCredits['parserhook'][] = $credits;
/*****************************************/
/* Language Strings, Page Aliases, Hooks */
/*****************************************/
$extDir = __DIR__ . '/';
/******************************************/
/* Language Strings, Page Aliases, Hooks */
/******************************************/
$extDir = __DIR__.'/';
$wgMessagesDirs['Tabber'] = "{$extDir}/i18n";
$wgExtensionMessagesFiles['Tabber'] = "{$extDir}/Tabber.i18n.php";
$wgMessagesDirs['Tabber'] = "{$extDir}/i18n";
$wgExtensionMessagesFiles['Tabber'] = "{$extDir}/Tabber.i18n.php";
$wgAutoloadClasses['TabberHooks'] = "{$extDir}/Tabber.hooks.php";
$wgAutoloadClasses['TabberHooks'] = "{$extDir}/Tabber.hooks.php";
$wgHooks['ParserFirstCallInit'][] = 'TabberHooks::onParserFirstCallInit';
$wgHooks['ParserFirstCallInit'][] = 'TabberHooks::onParserFirstCallInit';
$wgResourceModules['ext.Tabber'] = [
$wgResourceModules['ext.Tabber'] = [
'localBasePath' => __DIR__,
'remoteExtPath' => 'Tabber',
'styles' => ['css/tabber.css'],
'scripts' => ['js/tabber.js']
];
];